VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

TitleBar Button Example

Robert E. Phelps  (2 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Advanced   Wed 3rd February 2021

Place a command or toggle button on TitleBar of a form

Inputs
Advanced

Assumes
A beginner can use this code, an expert can understand it. By including a class and a module, the code is easily reused with only a few lines of code

Returns
Advanced

Side Effects
No side effects

API Declarations
CopyMemory, CallWindowProc, CreateFontIndirect, CreateWindowEx
DestroyWindow, GetFocus, GetProp, GetSystemMetrics, GetWindowLong
GetWindowRect, PostMessage, RemoveProp, SendMessage, SetFocus
SetParent, SetProp, SetWindowLong, SetWindowPos, ShowWindow
SystemParametersInfo
RECT
WM_SIZE, WM_LBUTTONUP, WM_WINDOWPOSCHANGED, WM_SETFONT
BM_SETCHECK, BM_CLICK
GWL_STYLE, GWL_EXSTYLE
WS_CAPTION, WS_CHILD, WS_EX_TOOLWINDOW
WS_THICKFRAME, WS_MAXIMIZEBOX, WS_MINIMIZEBOX
BS_PUSHBUTTON, BS_AUTOCHECKBOX, BS_PUSHLIKE
GWL_WNDPROC
SWP_FRAMECHANGED, SWP_NOACTIVATE
SW_SHOWNOACTIVATE
SM_CXFIXEDFRAME, SM_CXSIZEFRAME, SM_CXSIZE
SM_CXSMSIZE, SM_CYCAPTION, SM_CYSMCAPTION
WINDOWPOS
LF_FACESIZE, LOGFONT
SPI_GETNONCLIENTMETRICS, NONCLIENTMETRICS

Rate TitleBar Button Example (13(13 Vote))

Download TitleBar Button Example

TitleBar Button Example Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters