Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - CXTResizeDialog in a pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTResizeDialog in a pane

 Post Reply Post Reply
Author
Message
Robin Imrie View Drop Down
Newbie
Newbie
Avatar

Joined: 23 January 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Robin Imrie Quote  Post ReplyReply Direct Link To This Post Topic: CXTResizeDialog in a pane
    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
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: 16 September 2009 at 5:17am
Hi,
 
Change Dialog Style from "popup" to "child"
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Robin Imrie View Drop Down
Newbie
Newbie
Avatar

Joined: 23 January 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Robin Imrie Quote  Post ReplyReply Direct Link To This Post 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
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.156 seconds.