Print Page | Close Window

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

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=6348
Printed Date: 21 November 2024 at 10:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Closed] Dialog / Property Sheet / Page / Child!
Posted By: Simon HB9DRV
Subject: [Closed] Dialog / Property Sheet / Page / Child!
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: Simon HB9DRV
Date 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


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net