Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - [Closed] Dialog / Property Sheet / Page / Child!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Closed] Dialog / Property Sheet / Page / Child!

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: [Closed] Dialog / Property Sheet / Page / Child!
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2007 at 5:19am
Instead CXTPDialogBar try use simple CXTPTooLbar without CommandBars object:
 
CXTPToolBar m_wndToolbar.
 
m_wndToolBar.CreateToolBar(...);
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2007 at 5:24am
Originally posted by oleg oleg wrote:

Instead CXTPDialogBar try use simple CXTPTooLbar without CommandBars object:
 
CXTPToolBar m_wndToolbar.
 
m_wndToolBar.CreateToolBar(...);
 


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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2007 at 5:30am

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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.