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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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_
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
Please see this link it may have info ...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/trackbar/messages/tbm_setbuddy.asp
j@ck_
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.
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_
Correction:::
The line : Creating A Trackbar Common Control.
Is only : Track Bar
j@ck_
j@ck,
That still doesn't address the buddy window issue, but Thanks for the great link!