Форма, на ней с помощью АПИ пишешь текст, пользуешься в начале и в конце StartPath, EndPath, соответственно, переводишь путь в регион, вырезаешь свое окно по региону, ставишь окошку TOPMOST, и все....
Private Declare Function BeginPath Lib "gdi32" (ByVal hdc As Long) As Long Private Declare Function EndPath Lib "gdi32" (ByVal hdc As Long) As Long Private Declare Function PathToRegion Lib "gdi32" (ByVal hdc As Long) As Long Private Declare Function SetWindowRgn Lib "user32" _ (ByVal hWnd As Long, ByVal hRgn As Long, _ ByVal bRedraw As Boolean) As Long Dim mMove As Boolean Dim SX As Integer Dim SY As Integer
Private Sub Form_DblClick() End End Sub
Private Sub Form_Load() Const TEXT = "Basic Rulezzzzz!!!" Dim hRgn As Long Me.BackColor = &HFF0000 Me.BorderStyle = 0 Font.Name = "Times New Roman" Font.Bold = True Font.Size = 70 Width = TextWidth(TEXT) Height = TextHeight(TEXT) BeginPath hdc Print TEXT EndPath hdc hRgn = PathToRegion(hdc) SetWindowRgn hWnd, hRgn, False Move (Screen.Width - Width) / 2, (Screen.Height - Height) / 2 End Sub
Private Declare Function GetDesktopWindow Lib "user32" () As Long
Private 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 Long
Private Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As Long