Jump to content
  • Advertisement

Archived

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

Zimans

XP style graphic buttons

This topic is 5886 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

How do you create a button on a control so that it takes advantage of the current theme to draw it? I use CreateWindowEx with the "button" class, but I cannot find any WS_ styles or WS_EX_ styles to make windows draw it as a graphic button. MSDN hasn''t proven to useful yet in figuring it out.. If anyone knows how to do this let me know. Thx -Zims

Share this post


Link to post
Share on other sites
Advertisement
Check out this link on MSDN.

WinXP Visual Styles

It''s pretty simple. Add the manifest file to your project, include the common control header and library, and create and fill an INITCOMMONCONTROLSEX structure and make a call to InitCommonControlsEx at the beginning of your WinMain. Check out the link for full details on how to do this exactly.

/*=========================================*/
/* Chem0sh */
/* Lead Software Engineer & Tech Support */
/* http://www.eFaces.biz */
/*=========================================*/

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!