I was looking at some code in Charles Petzold's Programming Windows when I realized that the buttons, text boxes, etc. do not look like the default "ones" on WinXP or Win7. Okay, I mean that, I thought the typical procedure to call a button or a text field calls some file somewhere that loads the same button "shape" that the version of Windows the program is running on has (that was ugly).
So, how do I resolve this issue? And should I always account for the version of Windows my program is running on?
You need to add a manifest to your resources (or a #pragma directive if you use Visual Studio) to force loading comctl32.dll version 6 or higher, which is present only on windows xp or later, but is not enabled by default.
But the function's documentation says this functions is obsolete and we should use InitCommonControlsEx instead, but it is of type bool and takes an argument, so how should I call it in main?