into my program, then it should make the themes work. However, it did not work for me, and if I don't comment out the CREATEPROCESS line, then I get errors in the program.
Can anybody point me in the right direction to getting this to work?
This gets rid of the errors, however, I now find that when I run it, I still get those "errors" which upon closer consideration, is basically anything that would use the theme. (Static, and editboxes)
I even commented out the part from the resource file, and just with the #pragma code, I still get that issue.
Also, an MFC application uses the following code to initialize themes, try if that works for you.
Code:
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise, any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
I know you are not using MFC, but that code I posted is pure Win32 code, so you can just copy/paste that into your project. I was just saying that's how MFC is doing it
Bookmarks