VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



TitleBar Button Example

by Robert E. Phelps (2 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (13 Votes)

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
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

Download TitleBar Button Example

Download TitleBar Button Example (9 KB)

TitleBar Button Example Comments

No comments have been posted about TitleBar Button Example. Why not be the first to post a comment about TitleBar Button Example.

Post your comment

Subject:
Message:
0/1000 characters