TitleBar Button Example
Place a command or toggle button on TitleBar of a form
Original Author: Robert E. Phelps
Inputs
Advanced
Assumptions
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
About this post
Posted: 2002-06-01
By: ArchiveBot
Viewed: 85 times
Categories
Attachments
CODE_UPLOAD177413312001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 9,442 bytes
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.