Create 2nd toolbar
Tech-Archive recommends: Fix windows errors by optimizing your registry
Hi there,
I was wondering how do I create a 2nd toolbar right underneath the first
one? If I use the resource editor and created a single toolbar
IDR_MAINFRAME and I load it with:
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT,
WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_SIZE_FIXED | CBRS_TOOLTIPS) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
If I need a 2nd toolbar (IDR_SECONDTOOL), how do I load that if I use the
resource editor to create the toolbar?
Thanks,
Robert
.
Relevant Pages
- Re: How to remove the last separator from toolbar
... If he is talking about design time, then he will have to edit the rc file by ... because you can't drag seperators off the screen in resource editor. ... I need to add/remove some buttons from the toolbar depends on user ... (microsoft.public.vc.mfc) - Re: Toolbar 256 colors support in MFC
... Microsoft has all this really great graphics capability and they can't even display a 256 color bitmap in resource editor. ... toolbar in Resource, its support 16 colors. ... (microsoft.public.vc.mfc) - Creating a toolbar from existing icons - Color depth issue
... I want to create a toolbar in Visual Studio's resource editor. ... bitmaps as image and dynamically loading it into a CToolbar at runtime ... I'm using Visual Studio 2005, ... (microsoft.public.vstudio.general) - Re: Create 2nd toolbar
... int CMainFrame::OnCreate ... I was wondering how do I create a 2nd toolbar right underneath the first ... If I use the resource editor and created a single toolbar ... If I need a 2nd toolbar, how do I load that if I use ... (microsoft.public.vc.mfc) - Toolbar Images
... I have a resource editor file in VB6 which contains BMP images used by ... Resource Editor and passes it on to the Excel Add-In and using the ... PasteFace method I paste it on the toolbar button. ... (microsoft.public.excel.programming) |
|