Does anyone knows how to use common controls (specifically a tree view) in a program with Dev-C++
I can do it with Visual C++ but it seems that the code doesn't works with Dev-C++
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The current MinGW commctrl.h and, more importantly, the older version that comes with DevC++4, is incomplete and doesn't declare all the necessary stuff for all the common controls.
//
I have recently updated my website to include samples for creating most common controls with a modified, unofficial commctrl.h ( http://www.foosyerdoos.fsnet.co.uk )
//
As a quick fix try #define _WIN32_IE 0x0400 before you #include <commctrl.h> and recompile. If that works, great, if not then either add the missing declares to your copy of mingw commctrl.h or pick up a copy from any of the Common Controls example on my site.
//
Hope that has been of some use to you.
//
Ken Fitlike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does anyone knows how to use common controls (specifically a tree view) in a program with Dev-C++
I can do it with Visual C++ but it seems that the code doesn't works with Dev-C++
Use CreateWindowEx();
Look it up in msdn.
Kip
The current MinGW commctrl.h and, more importantly, the older version that comes with DevC++4, is incomplete and doesn't declare all the necessary stuff for all the common controls.
//
I have recently updated my website to include samples for creating most common controls with a modified, unofficial commctrl.h ( http://www.foosyerdoos.fsnet.co.uk )
//
As a quick fix try #define _WIN32_IE 0x0400 before you #include <commctrl.h> and recompile. If that works, great, if not then either add the missing declares to your copy of mingw commctrl.h or pick up a copy from any of the Common Controls example on my site.
//
Hope that has been of some use to you.
//
Ken Fitlike