CXTPDockingPane - some questions |
Post Reply |
Author | |
dmetzler
Newbie Joined: 09 February 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
Posted: 09 February 2004 at 10:31pm |
I am using Xtreme Toolkit Pro and have some questions about the CXTPDockingPane. I have looked at the XTP sample code (Advanced, DynamcPanes), but cannot find specifically what I need. 1) I want to create a dynamic layout of a CXTPDockingPane by creating controls using CreateWindow(). I am doing this now using a modified DynamicPanes example, but my child controls do not seem to be getting attached to the correct window. Can I create my child control windows before the CXTPDockingPane::Attach() is called? 2) If I want to resize my controls in the pane, in which CWnd (or CView) class would I put my OnSize() handler? 3) Can I control the minimum control size using WM_GETMINMAXINFO for a CXTPDockingPane? Thanks, Don Metzler SISCOM Media, Inc.
|
|
vladsch
Newbie Joined: 04 February 2004 Location: Canada Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Hi Don: I attached a custom pane class based on CWnd, it creates a single edit control in the OnCreate handler. It also resizes the edit control to fit the size of the pane in OnSize(). The usual pane stuff: in OnDockingPaneNotify you must add a case clause for the id of the pane and create it. I am using DockPaneWnd.h template class created by the XTreme AppWizzard to add a member to my CMainFrame: CDockPaneWnd<CCustomPane> m_wndCustomPane so that the default pane messages are handled. Hope this helps. |
|
dmetzler
Newbie Joined: 09 February 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
|
Thank you very much! I will take a look at it. Don |
|
dmetzler
Newbie Joined: 09 February 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
|
In your post above, you show: CDockPaneWnd<CCustomPane> m_wndCustomPane The CCustomPane is the class you included in the .zip file. What does the CDockPaneWnd refer to? Is this an existing XTP class, and if so, what is the correct name of this class? Thanks, Don |
|
vladsch
Newbie Joined: 04 February 2004 Location: Canada Status: Offline Points: 30 |
Post Options
Thanks(0)
|
It is in the DockPaneWnd.h file that the AppWizzard creates. Here is what it contains:
|
|
dmetzler
Newbie Joined: 09 February 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
|
One other question - how do you create the instance of the m_wndCustomPane object: Does this window have the WS_CHILD style, or WS_POPUP (and if a WS_CHILD, what is the parent HWND)? Thanks, Don |
|
vladsch
Newbie Joined: 04 February 2004 Location: Canada Status: Offline Points: 30 |
Post Options
Thanks(0)
|
In CMainFrame::OnDockingPaneNotify
|
|
dmetzler
Newbie Joined: 09 February 2004 Location: United States Status: Offline Points: 17 |
Post Options
Thanks(0)
|
thank you - that did it Don |
|
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 |