I've been doing some experimenting in Windows buttons, and I've always wondered: how do you create a Windows XP style button?
All the buttons I create are in the Windows 95/98 style:
But I want them like this, in the Windows XP style:
I know it's a little trivial, but is there any way to change the style?
I'm using this code to create the button:
Code:
HWND hbutton= CreateWindowEx(0,"BUTTON","OK",
BS_SOLID | BS_USERBUTTON | WS_VISIBLE | WS_CHILD,
wb->posx,wb->posy,wb->sizex,wb->sizey,
hwnd,NULL,(HINSTANCE) GetWindowLong(hwnd,GWL_HINSTANCE),NULL);
EDIT: For some reason, when I run the program in Debug mode, the button is in the Windows XP style. But I would still like to know how to do this without running in debug mode.