VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Give a window a toolbar style title bar using the SetWindowLong API function

Anonymous  (267 Submissions)   Custom Controls/Forms/Menus   Visual Basic 4.0 (32-bit)   Unknown Difficulty   Wed 23rd December 1998   Mon 8th February 2021

Give a window a toolbar style title bar using the SetWindowLong API function

API Declarations


Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Public Const WS_EX_TOOLWINDOW = &H80&
Public Const GWL_EXSTYLE = (-20)

Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Public Const SWP_FRAMECHANGED = &H20
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOZORDER = &H4
Public Const SWP_NOSIZE = &H1

Rate Give a window a toolbar style title bar using the SetWindowLong API function (2(2 Vote))
Give a window a toolbar style title bar using the SetWindowLong API function.bas

Give a window a toolbar style title bar using the SetWindowLong API function Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters