how can I use the InitCommonControlsEx function. It needs the INITCOMMONTROLSEX struct, but the compiler says he doesn't know, what the hell this thing is.
Any Idea?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
how can I use the InitCommonControlsEx function. It needs the INITCOMMONTROLSEX struct, but the compiler says he doesn't know, what the hell this thing is.
Any Idea?
Try using InitCommonControls(). This is what I always use. btw, you will need to link with some commcontrls lib.
Kip
INITCOMMONCONTROLSEX iccx;
iccx.dwSize=sizeof(INITCOMMONCONTROLSEX);
iccx.dwICC=ICC_UPDOWN_CLASS;
InitCommonControlsEx(&iccx);
This should set up a spinner.
INITCOMMONCONTROLSEX is in commctrl.h, at least in MinGW 2.0.
I don't use this function myself, plain old InitCommonControls suits me fine.
rpeter
Yes, but in order to use INITCOMMONCONTROLSEX you have to define
#define _WIN32_IE 0x0300
or higher to use the function.