How do I know which pane has the focus? |
Post Reply |
Author | |
ddlittle
Senior Member Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
Post Options
Thanks(0)
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! |
|
ddlittle
Senior Member Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |
Post Options
Thanks(0)
|
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 |
|
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 |