Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How do I know which pane has the focus?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I know which pane has the focus?

 Post Reply Post Reply
Author
Message
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Topic: How do I know which pane has the focus?
    Posted: 13 January 2005 at 10:25am

I have an MDI app with a lot of panes, some are dialogs, some are graphics, some are grids.  Each has its own accelerator table, and this is confusing to users.  I thought I would draw a red box around the active pane, but I can't seem to find the right XTP message that gets sent when a pane gains/loses focus.

I guess another way to say this is that I want to draw my panes differently depending on the who has the focus. WM_SETFOCUS doesn't seem to get called.

Any ideas, anyone? 

Thanks!
- David Little
- Houston, TX

Back to Top
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2005 at 1:42pm

I have fixed this (for the most part) by set "Luna" colors on.  I noticed that CView-derived windows get set active, but CDialog based windows don't.  Eventually, I discovered that the styles of the dialog in the .RC must be "WS_CHILD" only.

This seems to fix the issue of identification, unless the window is floating, in which case, I have no solution as yet.

Regards,

- David

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.125 seconds.