volanin
February 23rd, 2008, 04:47 PM
I am having a hard time with this:
How to I enable XP Button Style in Win32 API code developed using mingw?
Here is a sample code, mbox.c:
#define _WIN32_IE 0x0500
#define _WIN32_WINNT 0x0501
#include <windows.h>
#include <commctrl.h>
INT WINAPI WinMain( HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, INT show )
{
InitCommonControls( );
MessageBox( NULL, "WinXP button style.", "Message Box", MB_OK );
return 0;
}
But when I compile and run it with:
i586-mingw32msvc-gcc -o mbox.exe mbox.c -lcomctl32
wine ./mbox.exe
I only get the old ugly Win95 Button Styles.
The windows version in winecfg is set to Windows XP already.
Help Please!
:mad:
How to I enable XP Button Style in Win32 API code developed using mingw?
Here is a sample code, mbox.c:
#define _WIN32_IE 0x0500
#define _WIN32_WINNT 0x0501
#include <windows.h>
#include <commctrl.h>
INT WINAPI WinMain( HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, INT show )
{
InitCommonControls( );
MessageBox( NULL, "WinXP button style.", "Message Box", MB_OK );
return 0;
}
But when I compile and run it with:
i586-mingw32msvc-gcc -o mbox.exe mbox.c -lcomctl32
wine ./mbox.exe
I only get the old ugly Win95 Button Styles.
The windows version in winecfg is set to Windows XP already.
Help Please!
:mad: