![]() |
unable to switch menus between views |
Post Reply
|
| Author | |
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Topic: unable to switch menus between viewsPosted: 08 June 2005 at 11:02pm |
|
Please show CMainFrame::OnCreate
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
bevpet
Newbie
Joined: 01 April 2005 Location: Canada Status: Offline Points: 39 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 June 2005 at 11:34pm |
|
hi, probably missing something again with the xtreme toolkit. simple problem, i want to display a different menu when one of my other forms is displayed, but for some reason its not, i'm guessing there must another call i need to make to activate the menu i want besides having this : // Register the application's document templates. Document templates // serve as the connection between documents, frame windows and views. m_pDocTemplateStartPage = new CMultiDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CStartPageDoc), RUNTIME_CLASS(CChildFrame), RUNTIME_CLASS(CStartPageView)); AddDocTemplate(m_pDocTemplateStartPage); // main menu is above //////////////////////////////////////////////////////////// m_pDocTemplateBrowserPage = new CMultiDocTemplate( IDR_IE_MENU, RUNTIME_CLASS(CStartPageDoc), RUNTIME_CLASS(CChildFrame), RUNTIME_CLASS(CBrowserView)); AddDocTemplate(m_pDocTemplateBrowserPage);
// this is class is a simple browser with the IE toolbar i'd like to so // as the maintool bar is getting too cluttered. //////////////////////////////////////////////////////////// /////////////////
any help on the above appreciated or where to look in the docs for the solution appreciated. thanks Peter
|
|
![]() |
|
bevpet
Newbie
Joined: 01 April 2005 Location: Canada Status: Offline Points: 39 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 June 2005 at 5:11pm |
|
Hi Oleg, as requested. thank you if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1) if (!m_wndStatusBar.Create(this) ||
CXTPCommandBars* pCommandBars = GetCommandBars(); CXTPToolBar* pCommandBar = (CXTPToolBar*)pCommandBars->Add(_T("Standard"), xtpBarTop); pDatabaseBar = (CXTPToolBar*)pCommandBars->Add(_T("Database Navigation"), xtpBarTop); XTPImageManager()->SetMaskColor((COLORREF)-1); // Auto if (XTPImageManager()->IsAlphaIconsSupported()) XTPPaintManager()->GetIconsInfo()->bUseDis abledIcons = TRUE; } else CXTPToolBar* pWebBar = (CXTPToolBar*)pCommandBars->Add(_T("Web"), xtpBarTop); LoadCommandBars(_T("CommandBars")); GetDockingPaneManager()->InstallDockingPanes(this); CXTPDockingPaneLayout layoutNormal(GetDockingPaneManager()); CXTPDockingPane* paneFindInFilesView = GetDockingPaneManager()->CreatePane( CXTPDockingPane* paneHelpView = GetDockingPaneManager()->CreatePane( CXTPDockingPane* paneTasksView = GetDockingPaneManager()->CreatePane( GetDockingPaneManager()->AttachPane(paneOutpu t, paneTasksView); paneTasksView->Select(); if (!CreateTaskPanel()) return FALSE; pCommandBars->GetCommandBarsOptions()->animation Type = (XTPAnimationType)theApp.m_bxtpAnimateWindowsDef ault; int nIDIcons[] = { // assign to menu/pane/tab item id GetDockingPaneManager()->SetIcons(IDB_BITMAP_PANELI CONS, nIDIcons, VERIFY(m_MTIClientWnd.Attach(this, TRUE)); CXTPTabPaintManager* pTabPaintManager = new CXTPTabPaintManager(); m_MTIClientWnd.SetPaintManager(pTabPaintManager); theApp.GetSystemSettings(0); // LOAD USER PREFERENCES CXTPPaintManager::SetTheme((XTPPaintTheme)theApp.m_nPa intTheme);
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 June 2005 at 8:53am |
|
There is line pMenuBar->SetFlags(xtpFlagIgnoreSetMenuMessage); that don't make it. Remove it. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
bevpet
Newbie
Joined: 01 April 2005 Location: Canada Status: Offline Points: 39 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 June 2005 at 9:18am |
|
appreciated, thanks Oleg, Peter |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |