[Closed] Dialog / Property Sheet / Page / Child! |
Post Reply |
Author | |
Simon HB9DRV
Senior Member Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
Posted: 08 February 2007 at 5:07am |
Hi,
What you see is a modeless property sheet, on the current page there is a CTabCtrl, I have a CXTPDialog-based dialog as a child of the CTabCtrl (bottom right). The problem is that toolbar operations lock the program, my question: is this the correct approach? I am using CXTPDialog as I prefer to use the Jock command bar. (I am currently compiling with just CDialog and removing the command bar which should be OK - I can use a standard MFC toolbar but...). |
|
Simon HB9DRV
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Instead CXTPDialogBar try use simple CXTPTooLbar without CommandBars object:
CXTPToolBar m_wndToolbar.
m_wndToolBar.CreateToolBar(...);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Simon HB9DRV
Senior Member Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
|
OK - I'll give it a try and report back, next time with a nice big stack (using the VS break option to see what's happening). |
|
Simon HB9DRV
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Grab some code from Samples\UserInterface\GUI_VisualStudio\SolutionExplorerPane.cpp VERIFY(m_wndToolBar.CreateToolBar(WS_TABSTOP|WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS, this));
VERIFY(m_wndToolBar.LoadToolBar(IDR_PANE_SOLUTIONEXPLORER)); CSize sz = m_wndToolBar.CalcDockingLayout(cx, LM_HIDEWRAP| LM_HORZDOCK|LM_HORZ | LM_COMMIT);
m_wndToolBar.MoveWindow(0, nTop, cx, sz.cy);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |