|
-
June 28th, 1999, 11:11 AM
#1
Using 256 Color Bitmaps in Toolbar
I try to create a toolbar using 256 color bitmaps. I checked the Kevin Bentley's tip in the Controls Related Source Code Sections. I have a little bit trouble to achieve this. Two questions:
1. In my MainFrm.cpp, I have lines reads:
if (!m_MyToolbar.Create(this) ||
!m_MyToolbar.LoadToolBar(IDR_MYTOOLBAR))
{
TRACE0("Failed to create My ToolBar\n");
return -1; // fail to create
}
I don't know where to put the suggested line.
m_wndToolBar.GetToolBarCtrl().AddBitmap(iNumButtons,IDR_MAINFRAME);
2. How do I create 256 color the Toolbar bitmap. Say, I have IDR_MYTOOLBAR in TOOLBAR resource ( 16 color), should I create a separate 256 color bitmap and import it to the Bitmap resource? How does this work?
Thanks for you help in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|