Jump to content
  • Advertisement
Sign in to follow this  
Erik Rufelt

Vista-style buttons

This topic is 3713 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, When creating buttons with CreateWindow, or when simply displaying a "Save?" dialog with the MessageBox function, my buttons still look like the plain old Windows. Even on Vista and XP where the buttons should have a new theme look. How can I make them look shinier? =) I'm using C++ and Win32, compiling with VS 2008, defining the Windows version for the Windows headers to 0x0600. Including commctrl.h I can also create buttons with the new styles like BS_SPLITBUTTON, however they don't show up like they should when my application is run. Do I need to create these in some other way than using the normal WC_BUTTON class to CreateWindow? Also for the MessageBox function I'd like the buttons to look correct no matter what theme or Windows version the user is using. Left is how it looks for me, right is how I want it to look: Thanks, /Erik

Share this post


Link to post
Share on other sites
Advertisement
I might be wrong but don't you have to include a .manifest file in the project and call InitCommonControls() to get the controls themed? I remember doing it this way for VB6.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!