Original Post
🔒 Locked
Extra buttons
Advertisement
If you intercept WM_NCPAINT, you can draw things to the window frame. Use the SystemParametersInfo function to determine where you should draw your own buttons.
Also, WM_NCLBUTTONDOWN and WM_NCLBUTTONUP should be intercepted to handle the mouse clicks in the non-client area (the window frame).
-Nik
EDIT: Of course you can draw custom stuff anywhere in the window, but from SystemParametersInfo you'll get the positions of the default stuff for reference.
[edited by - Nik02 on October 16, 2003 5:16:08 AM]
[edited by - Nik02 on October 16, 2003 5:16:27 AM]
Also, WM_NCLBUTTONDOWN and WM_NCLBUTTONUP should be intercepted to handle the mouse clicks in the non-client area (the window frame).
-Nik
EDIT: Of course you can draw custom stuff anywhere in the window, but from SystemParametersInfo you'll get the positions of the default stuff for reference.
[edited by - Nik02 on October 16, 2003 5:16:08 AM]
[edited by - Nik02 on October 16, 2003 5:16:27 AM]
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement