I try to create a window with a status bar:
#include <commctrl.h>
InitCommonControls();
hStatus = CreateWindowEx(
0, STATUSCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP,
0, 0, 0, 0, hWnd, (HMENU)IDC_MAIN_STATUS, GetModuleHandle(NULL), NULL);
int statwidths[] = {100, -1};
SendMessage(hStatus, SB_SETPARTS, sizeof(statwidths)/sizeof(int), (LPARAM)statwidths);
Everything's ok, except it is drawn in Classic style, rather than in XP style.
Please, how to make it appear in XP style? Do I have to define some #define _WIN32_IE 0x0500 (which I already have)?
I use MinGW, if that effects anything...