Output borderless hollow word (code)

xiaoxiao2021-03-06  51

Private Declare Function BeginPath Lib "gdi32" (ByVal hdc As Long) As LongPrivate Declare Function EndPath Lib "gdi32" (ByVal hdc As Long) As LongPrivate Declare Function PathToRegion Lib "gdi32" (ByVal hdc As Long) As LongPrivate Declare Function TextOut Lib "gdi32" Alias ​​"TextOutA" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal lpString As String, ByVal nCount As Long) As LongPrivate Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As long, byval brew as boolean) As longprivate declare function deleteObject lib "gdi32" (Byval Hobject As long) As long

Private Sub Form_Load () DIM HRGN As Long Me.WindowState = 2 me.fontname = "arial" me.fontsize = 100 me.backcolor = vbred beginpath me.hdc textout me.hdc, 0, 0, "i love you!" 12 endpath me.hdc hrgn = pathtoregion (me.hdc) setWindowRgn Me.hWnd, HRGN, TRUE DELETEOBJECT HRGNEND SUB

转载请注明原文地址:https://www.9cbs.com/read-118133.html

New Post(0)