Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - disappearing controls
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

disappearing controls

 Post Reply Post Reply
Author
Message
fakusz View Drop Down
Newbie
Newbie


Joined: 03 April 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fakusz Quote  Post ReplyReply Direct Link To This Post Topic: disappearing controls
    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
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: 05 January 2009 at 5:51am

Hi,

Can be Clip styles issue. Add WS_CLIPCHILDREN|WS_CLIPSIBLINGS style for Dialog and Panes.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2009 at 6:28am
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/
Back to Top
fakusz View Drop Down
Newbie
Newbie


Joined: 03 April 2008
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote fakusz Quote  Post ReplyReply Direct Link To This Post Posted: 06 January 2009 at 8:19am
the second solution works
the class that is registered (showed) in the pane is a descendant of the CXTPResizeDialog

thank you,
fakusz
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.063 seconds.