Re: [Dev-C++] Problem with Common Controls?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <jos...@ya...> - 2001-03-02 12:59:47
|
> I have entered the sample program to create a popup window with > a vertical bar control and it uses the InitCommonControlsEx() This > requires "commctrl.h" and supposedly "comctl32.h" also. I only use "commctrl.h". > The error I am > getting is "ICC_BARS_CLASSES declared for first time". This is > supposed to > be part of the INITCOMMONCONTROLSEX structure. For mingw32 compiler you need to include the libcomctl32.a file in the compiler options. In Dev-C++ you go to Project Options and click on "Load Object Files". Look for the one above. > When I look in the Include > directory for Dev-C++, there is no "comctl32.h" header file and > "commctrl.h" does not declare it either. There is a "comctl32.def" > definition file in the Library directory but I thought Windows 95 > didn't > use them. Anyone have any idea how to solve this problem? I'm > afraid that > I move further in the book I'll experience the same errors for all > the > "ICC_..._CLASSES" Thanks. > There are some definitions missing in the mingw32 commctrl.h header. This will work. #define ICC_BAR_CLASSES 4 Some other definitions are only available if you define in your code #define _WIN_32 0x0400 // defines for Internet explorer 4.0 hth Chemanuel __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |