Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Extra buttons

This topic is 5457 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post

Link to post
Share on other sites
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).


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]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!