Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - using VC6 resource editor
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

using VC6 resource editor

 Post Reply Post Reply
Author
Message
avi_a View Drop Down
Newbie
Newbie


Joined: 29 March 2008
Location: Israel
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote avi_a Quote  Post ReplyReply Direct Link To This Post Topic: using VC6 resource editor
    Posted: 29 March 2008 at 4:55am
How can I edit resources that has more than 256 colors.
The VC6 posts an error message and does not open the toolbars.
Thanks for your help.
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2008 at 5:39am
Originally posted by avi_a avi_a wrote:

How can I edit resources that has more than 256 colors.
The VC6 posts an error message and does not open the toolbars.
Thanks for your help.
 
I use paint. The Toolbar's properties show the bitmap name, I usually create a new bitmap with a more sensible name and edit with Paint, save as 24-bit bitmap.
 
An alternative is to use XTPImageManager()->SetIcons() and provide alternate high-res bitmaps.
Simon HB9DRV
Back to Top
avi_a View Drop Down
Newbie
Newbie


Joined: 29 March 2008
Location: Israel
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote avi_a Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2008 at 1:23am
Nice, but I can't edit the toolbar properties or add a new button because the MFC can't load it at all.
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2008 at 3:34am
Hi;
I maintain two bitmaps, one for  the VC6 resource editor to load the toolbar with only 256 colors and the final one loaded at runtime with hires colors.
If you don't like to add this additional 'step', you can edit your toolbar resource by opening the .rc file as plain text file (open as...). 
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.045 seconds.