Menu

TBM_SETBUDDY problem

2002-12-07
2012-09-26
  • Nobody/Anonymous

    I'm trying to compile a C++ project (common control part 2) from Planet Source Code http://www.planet-source-code.com/; page  5 of the C++ Controls/Forms/Dialogs/Menus section. I keep getting the 'TBM_SETBUDDY' undeclared [first use this message} error. I've included the #define _WIN32_IE 0x0600 macro as this resolved a similar issue in the past. I've also linked the comctl32.a library. Does anyone have any other ideas.

     
    • Nobody/Anonymous

       
    • Nobody/Anonymous

      Thanks j@ck_! It has lots of info; but I can't see the pepper for the fly shit! The resolution to this issue escapes me even having read the MSDN info. I appreciate your thoughts, however.

       
    • Nobody/Anonymous

      Hay hay hay i found something i think...

      http://www.foosyerdoos.fsnet.co.uk/

      The Menu on the left look for::
      Creating Common Controls.
      Select the::
      Creating A Trackbar Common Control.

      Download the zip for the source. ( its a single file. when you open the zip go to the folder 'source'  " Trackbar.cpp " ). extract it to where you have the project.... now

      Create a 'windows' project...  Remove the default code and add the source 'Trackbar.cpp' in its place.
      Now.... go to project options and see the entry box for' linker options/Optional libs or object files'  place   -lcomctl32  in there and click ok. Then compile...

      I got it to compile with no problem...
      Hope this helps... let me know whats up...if any questions come back here and ask.

      j@ck_

       
    • Nobody/Anonymous

      Correction:::
      The line :  Creating A Trackbar Common Control.

      Is only :  Track Bar

      j@ck_

       
    • Nobody/Anonymous

      j@ck,
      That still doesn't address the buddy window issue, but Thanks for the great link!

       

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.