I just began creating a new windows application in C++, using VS 2012, and instead of using the pre-made template for "win32 application", I simply started a blank project and wrote my window from scratch.
The problem is, the buttons look like this:
Then I realized I needed to embed a manifest, which was no issue, so I put this inside the code:
pragma comment(linker,"\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
Afterward, to my displeasure, the button became this equally unattractive little guy:
For some reason, it's not looking how it is supposed to. Does anybody have any ideas what the issue might be?
Issue might be that you use WinAPI directly.
Have you tried sending WS_BORDER
with PostMessage to the Control and set it 0 ?
Link your manfifest to your application which specifies v6 common controls. http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175(v=vs.85).aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With