by jeff? (1 Submission)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sun 19th February 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This Code Changes The Default Start Pannel Button Name.
API Declarations
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Integer, ByVal lParam As Any) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
Private Const WM_SETTEXT = &HC
MsgBox "This Application Licensed Under Tortoise Inc.™" & Chr(13) & "Changes The Start Pannel Button Name", vbInformation, "YahooO!"
jeff = InputBox("Type Your Desired New Start Pannel Button Name:" & Chr(13) & "Note: 5 Characters Maximum", "Tortoise Inc.™", "Start")
Dim tWnd As Long, bWnd As Long
tWnd = FindWindow("Shell_TrayWnd", vbNullString)
'Get the start-button's window handle
bWnd = FindWindowEx(tWnd, ByVal 0&, "BUTTON", vbNullString)
SendMessage bWnd, WM_SETTEXT, &O0, jeff
'SetWindowText bWnd, Text1.Text
End
End Sub