Menu

Common controls in Dev-C++

2002-01-10
2012-09-26
  • Nobody/Anonymous

    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++

     
    • Nobody/Anonymous

      Use CreateWindowEx();

      Look it up in msdn.

      Kip

       
    • Nobody/Anonymous

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.