I can't seem to get a CMFCButton to be displayed in Vista style in a dialog box application. I'm using VS2008 with MFC Feature Pack.
Here are some steps to reproduce my problem:
- Create a new MFC Project;
- Specify a Dialog based project.
- Add two buttons to the main dialog.
- Add a variable for each button. Make one of the variables a CButton, the other one a CMFCButton.
- Compile and run.
test app picture http://img7.imageshack.us/img7/3/testapp.png
As you can see, the CButton has the correct style but the CMFCButton does not.
What I am missing here?