VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Changes the Title Bar on any window to whatever you like.

Eric Morrison  (2 Submissions)   Custom Controls/Forms/Menus   VB 6.0   Unknown Difficulty   Mon 17th July 2000   Mon 8th February 2021

Changes the Title Bar on any window to whatever you like.

API Declarations


'Eric Morrison
'July 17, 2000
'Nova Scotia, Canada

'This will change the Title Bar on any window you click on
'after you click the Set TitleBar button

'Enter the following in Module (ClientToScreen uses this type)
'Type PointAPI
' x as long
' y as long
'End Type

'Form Items
'1 Text box
'Name=txtString
'
'2 Command Buttons
'Name=cmdSet
'Caption=Set TitleBar
'
'Name=cmdExit
'Caption=E&xit
'
'Extras
'On the Form set the ScaleMode Property to Pixel


Private Declare Function WindowFromPoint Lib "user32" _
(ByVal xPoint As Long, ByVal yPoint As Long) As Long

Private Declare Function SetCapture Lib "user32" _
(ByVal hwnd As Long) As Long

Private Declare Function ReleaseCapture Lib "user32" () As Long

Private Declare Function ClientToScreen Lib "user32" _
(ByVal hwnd As Long, lpPoint As PointAPI) As Long

Private Declare Function SetWindowText Lib "user32" _
Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long

Dim blnChoose As Boolean

Rate Changes the Title Bar on any window to whatever you like. (2(2 Vote))
Changes the Title Bar on any window to whatever you like..bas

Changes the Title Bar on any window to whatever you like. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters