Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Clive Minnican
|
Nov 3, 2004 - 4:54 AM
|
I have tried setting the toolbar to use large icons with the following code:
CExtToolControlBar::g_bToolbarLargeIcons = true;
This doesn’t have the desired effect, as can be seen here: http://www.lightwave-design.com/toolbar/toolbarlarge.bmp Also 32x32 works fine for 16 colour icons without setting the flag above. When I try to use 32x32 256 I get the behaviour already discussed. When I try to use 32x32 true colour the application crashes!!! I know it must be possible because it is done in the FunnyBars demo. By the way I’m using Visual Studio 2003 (7.1) and I’m compiling using the Release configuration. Please technical support get back to me on this one with a satisfactory answer! Clive.
|
|
Technical Support
|
Nov 4, 2004 - 2:05 AM
|
It seems the image size of the toolbar resource in your app does not correspond to the image size of the bitmap. Besides, we guess that your bitmap is not in the DIB (device independent bitmap) format, which is required for it to be loaded correctly. To convert it to the valid bitmap file, you may use the MSPAINT program (paste and save the image as a 24-bit bmp file).
The static CExtToolControlBar::g_bToolbarLargeIcons property forces a toolbar window to draw double-sized icons nor matter what the original icon size is.
You can send us your toolbar images so that we can check them.
|
|
Clive Minnican
|
Nov 4, 2004 - 3:23 AM
|
|
|
Technical Support
|
Nov 8, 2004 - 8:41 AM
|
Please open this bitmap file in MSPAINT and save it in the 24-bit format. The images in the toolbar will be displayed correctly. Now you can open the 24-bit BMP file in MSPAINT again and save it as a 256-color image. The images should also be displayed correctly.
|
|