Skip to main content
gamedev.net
🔒 Locked

Extra buttons

Started by Bizze Oct 16, 2003 at 4:03 AM 2 replies 250+ views
Original Post
Bizze
Bizze
Hi, I would like to add some buttons on the title bar of my window. Right by the minimize/maximize/close buttons. But can''t find a way to do it. Could anyone push me in the right direction?
Nik02
Nik02
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]
Niko Suni
Bizze
Bizze
Will try that
cheers
Bizze
Bizze
Works perfectly, thanks alot

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.