- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use CVF 6.6c. The resource editor lets you create a toolbar resource with buttons on it each with its own bitmap and, but I can not find a way of adding it to my application in the same way as a menu is loaded (during RegisterClass). How is such a toolbar resource added so that I can process messages from it (in WM_COMMAND) in my applications message loop?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rehi Tony,
I'm just done with adding XFTToolbar module to my XFT Libraryso my memory is pretty fresh on the subject :-). However, I recommend that you just download the library and new TbTest sample, and browse/debug the code yourself -- even if you don't plan to use it as-is, most of it are just simple wrappers for Win32 toolbar APIs (CreateToolbarEx, TB_ADDBUTTONS etc).
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Jugoslav, I will give it a try. P.S> the resource file TbTest.RC failed to load because in it the icon names were given as "res//iconname.bmp", so they were flagged as not found. SoI edited the file to delete the 'res//' prefix , saved it and it loaded OK, this time showing all the resources. I'll let you know how I get on. Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re P.S: That wouldn't have happened if you had "Use folder names" checked in your WinZip :-).
Good luck
Jugoslav
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page