Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - [Closed] Redraw Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Closed] Redraw Problem

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: [Closed] Redraw Problem
    Posted: 23 October 2006 at 5:45am
I have CDialogs inside panes.

Pressing 'Return' causes the dialog to be 'undisplayed' (goes grey), as soon as I resize the pane it is redisplayed.

The pane has to be active (have the focus).

This is not a problem with the CodeJock sample with a Dialog pane (can't remember the sample now).

Any suggestion please?
Simon HB9DRV
Back to Top
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Posted: 23 October 2006 at 6:13am
When your pane is active and you press 'Return', it will activate the default (even invisible) OK button of the dialog, so OnOK() of your dialog will be called - the default implementation of which closes (hides) your dialog. Don't you have the same problem with pressing 'Esc'?
This could be your problem, isn't it?
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 23 October 2006 at 6:22am
Originally posted by akur akur wrote:

When your pane is active and you press 'Return', it will activate the default (even invisible) OK button of the dialog, so OnOK() of your dialog will be called - the default implementation of which closes (hides) your dialog. Don't you have the same problem with pressing 'Esc'?
This could be your problem, isn't it?

DOH!

Many thanks :-)
Simon HB9DRV
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: 23 October 2006 at 9:26am
ps. don't forget to override OnCancel also (For Escape)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.156 seconds.