Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
I use CXTPDockingPane to create panes and append them to MainFrame of program. The panes appear nicely. The problem is that there is an unused part exists in MainFrame among the panes. I would like the created panes fulfill the MainFrame and there is no unused part in MainFrame. I tried to hide the unused part or make it disappear but I couldn't. Please help me. Thank you very much.

What I have tried:

I tried to hide the unused part or make it disappear but I couldn't.
Posted
Updated 14-Jun-16 20:15pm
Comments
Sergey Alexandrovich Kryukov 15-Jun-16 2:06am    
Please read this:
What have you tried so far?
—SA

1 solution

Please see:
ShowWindow function (Windows).
In MFC: CWnd::OnShowWindow.

You can have a control representing a panel window, some window serving as a parent for some of your control, probably a hierarchy of windows based on parent/child relationship. If you hide/show the parent, it will hide/show all the hierarchy of the children.

—SA
 
Share this answer
 
Comments
Member 11583784 16-Jun-16 3:12am    
Thank you for your reply Sergey Alexandrovich Kryukov. I have read the links you recommended. However, in my program case, MainFrame is parent window and other panes are children. If I close one pane window, other pane windows should be still opened. What should I do in this case? P/S: the "unused part" is not a pane window, it is a part of MainFrame that the opened pane windows can't overlap it. Thank you Sergey Alexandrovich Kryukov.
Sergey Alexandrovich Kryukov 16-Jun-16 3:18am    
No matter what you do, you can hide a window representing a control the way I explained. I have no idea what is a pane window in your case, but if you want to hide a group of control, don't design your UI in ad-hoc manner. If a group is to be enabled/disabled, you have to put them not on the main window, but onto some parent some control.
—SA
Member 11583784 16-Jun-16 3:30am    
Sorry, it was a mistake, it should be "panel window". Thank you Sergey Alexandrovich Kryukov, I see what you explained now.
Sergey Alexandrovich Kryukov 16-Jun-16 9:19am    
You are very welcome. Will you accept the answer formally?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900