Sign in to follow this  
Erik Rufelt

Vista-style buttons

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this