![]() |
MDI forms- keep panes in form |
Post Reply ![]() |
Author | |||||
aaron1 ![]() Newbie ![]() Joined: 30 January 2004 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() Posted: 30 January 2004 at 5:35am |
||||
I am working on an MDI application and using the Dockking Pane controls. I would like to be able to: 2. Prevent them from tearing the Panes off of the form. Basically just to let them move them around and hide them show them. But all on the same form. What I am trying to avoid is having multiple identical Panes from several forms torn off and floating around the main MDI document. Thanks. |
|||||
![]() |
|||||
vladsch ![]() Newbie ![]() Joined: 04 February 2004 Location: Canada Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
||||
Hi Aaron: Here are mods to MDIPanes sample so that when an MDI window is deactivated it hides its floating pane and shows it when re-activated. If the pane is not floating leaves it as is. Not quite the restriction of not being able to float a pane but from what you described it should do the trick. I tried these mods on the MDIPane sample app: 1. In CChildFrame::OnDockingPaneNotify after the line
This will remove the x from the docked pane and prevent it from closing. When floating the X is still there but does nothing. 2. Declare in ChildFrm.h
3. In ChildFrm.cpp Add to the message map
4. In ChildFrm.cpp Add the OnMDIActivate function:
|
|||||
![]() |
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 |