Print Page | Close Window

CXTResizeDialog in a pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=15179
Printed Date: 24 April 2024 at 4:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTResizeDialog in a pane
Posted By: Robin Imrie
Subject: CXTResizeDialog in a pane
Date 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 - 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



Replies:
Posted By: Oleg
Date Posted: 16 September 2009 at 5:17am
Hi,
 
Change Dialog Style from "popup" to "child"


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Robin Imrie
Date Posted: 16 September 2009 at 5:31am
brilliant thanks - that worked.

-------------
Product: xtreme Toolkit Pro V13.1.0
Platform: Windows XP SP3
Language: VC++ 2008



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