![]() |
disappearing controls |
Post Reply ![]() |
Author | |
fakusz ![]() Newbie ![]() Joined: 03 April 2008 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() Posted: 05 January 2009 at 5:07am |
Hi,
I created a dialog based program, and I use two CXTPDockingPanes on it. The problem is, that if the docking pane is focused, by pressing a keyboard button (for example the Enter or Esc), all controls disappear from the pane, and only from the focused pane After I minimize the program and restore, the controls are visible again Can anybody has a suggestion for this problem? I am using Codejock Toolikt Pro for Visual C++ MFC version 12.0.2 under XP with Visual Studio 2008 thanks, fakusz |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, Can be Clip styles issue. Add WS_CLIPCHILDREN|WS_CLIPSIBLINGS style for Dialog and Panes.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Not quite.
You need to override OnOK() and OnCancel() and NOT call the base-class! The best thing to do is to create a CDialogPane-class with these modifications.
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
fakusz ![]() Newbie ![]() Joined: 03 April 2008 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
the second solution works
the class that is registered (showed) in the pane is a descendant of the CXTPResizeDialog thank you, fakusz |
|
![]() |
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 |