CXTResizeDialog in a pane |
Post Reply |
Author | |
Robin Imrie
Newbie Joined: 23 January 2006 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 15 September 2009 at 12:28pm |
I have a project which has a CXTResizeDialog in a docking pane. Whilst docked it resizes as required, however once undocked i can't resize it.
to reproduce... (project also attached!)uploads/20090915_122542_demo1.zip 1. Created a simple SDI with doc/view project using the toolkit Pro wizard. 2. Create a new dialog (border set to "none") 3. Create a class for the dialog (CDialogPane) 4. for this class change all instanses of CDialog to CXTResizeDialog 5. add the header file for the dialog class to mainframe.h 6. in MainFrame.h change the line CXTPOfficeBorder<CEdit> m_wndProperties;to CDialogPane m_wndProperties;7. in mainframe.cpp (function: CMainFrame::OnDockingPaneNotify) change if (m_wndProperties.GetSafeHwnd() == 0) { m_wndProperties.Create(WS_CHILD| ES_AUTOVSCROLL|ES_MULTILINE, CRect(0, 0, 0, 0), this, 0); } to if (m_wndProperties.GetSafeHwnd() == 0) { m_wndProperties.Create( IDD_DIALOG1, this ); } 8. build and run... what do I need to do so that I can resize this pane when it is un-docked. |
|
Product: xtreme Toolkit Pro V13.1.0
Platform: Windows XP SP3 Language: VC++ 2008 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Change Dialog Style from "popup" to "child"
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Robin Imrie
Newbie Joined: 23 January 2006 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
brilliant thanks - that worked.
|
|
Product: xtreme Toolkit Pro V13.1.0
Platform: Windows XP SP3 Language: VC++ 2008 |
|
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 |