|
From: Yeoh H. <ye...@ye...> - 2002-12-11 01:22:07
|
Hi,
If you take a look at commctrl.h, here's what you'll find.
#if (_WIN32_IE >= 0x0300)
typedef struct tagINITCOMMONCONTROLSEX {
DWORD dwSize;
DWORD dwICC;
} INITCOMMONCONTROLSEX,*LPINITCOMMONCONTROLSEX;
#endif
That's why you are getting undeclared error message for
INITCOMMONCONTROLSEX.
To solve this you need to define _WIN32_IE to be at least 0x0300.
One method is to add this define is in you code, before you include
commctrl.h
#define _WIN32_IE 0x0400
#include <commctrl.h>
Or, you can add the define to the compiler options.
Best Regards,
Yeoh
~`~`~`~`~`~`~`~`~`~`~
http://www.yeohhs.com
~`~`~`~`~`~`~`~`~`~`~
----- Original Message -----
From: "Vlada Djurovic" <dj...@im...>
To: "'DevC++ help'" <dev...@li...>
Sent: Tuesday, December 10, 2002 8:32 PM
Subject: [Dev-C++] version of commctrl.h
> Hi.
> I #included commctrl.h in one of my projects trying to create a toolbar. I
> get error messages like "INITCOMMONCINTROLSEX not declared" and "BTNS_XXX
> not declared". After that, I used TBSTYLE_XXX for button styles and
> InitCommonControls() and it worked. I am running Win2000 and Dev-Cpp
> 4.9.6.0. Could it be that I have some older version of commctrl.h or
> libcomctl32 (also included in linker settings)? Or maybe I have some older
> version of comctl32.dll? How can I determine which versions I have?
>
> Regards,
> Vlada
>
|