|
From: Vlada D. <dj...@im...> - 2002-12-11 07:51:44
|
----- Original Message -----
From: "Yeoh HS" <ye...@ye...>
To: "Vlada Djurovic" <dj...@im...>; "'DevC++ help'"
<dev...@li...>
Sent: Wednesday, December 11, 2002 2:20 AM
Subject: Re: [Dev-C++] version of commctrl.h
> 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
> ~`~`~`~`~`~`~`~`~`~`~
>
OK. Thanks. But can you explain what that directive does? I don't like using
something I don't understand.
> ----- 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
> >
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> With Great Power, Comes Great Responsibility
> Learn to use your power at OSDN's High Performance Computing Channel
> http://hpc.devchannel.org/
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|