VS then generated a bitmap which I replaced with my high color version. Just some dummy icons and the command IDs. There is the invisible toolbar IDR_OTHERTOOLBAR: I created a toolbar with the resource editor. The cool thing: Just replace it with a 32bit image and that'll work, too. The former is the ugly 16 color version and the latter is the interesting high color version.ĭespite its name, if I remember correctly, even the AppWizard-generated image has 24bit color depth. IDR_MAINFRAME and IDR_MAINFRAME_256 were generated by AppWizard. VERIFY( m_wndInvisibleToolBar.LoadToolBar(IDR_OTHERTOOLBAR) ) Invisible toolbar simply calling Create(this) seems to be enough M_wndToolBar.EnableDocking(CBRS_ALIGN_ANY) Only the docking makes the toolbar visible TheApp.m_bHiColorIcons ? IDR_MAINFRAME_256 : IDR_MAINFRAME) ) ![]() TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC)) ![]() Int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) ![]() , as the others said, create an invisible toolbar next to your main toolbar (I'm using the usual names based on AppWizard's names): MainFrm.h:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |