January 14th, 2003, 11:19 AM
Alright I am new to this board, but I have a question that I haven't been able to find an answer for, for about a month. I have a program (SDI) using MFC and there are 5 panes. Three rows, with the middle row being a pointer to 3 other panes. Now the problem is, when the user is in either of the top or bottom rows, I can't get the focus to be set to the middle frame. This is causing problems because I need this for my menu to work properly as well, and the user can't close either of the pages that open when they click the banners (Top and Bottom rows). I hope that is specific enough.
January 14th, 2003, 11:51 AM
what do you want to say, the user "is" in the row?
is the input cursor blinking there? ... this is the definition of the "focus", like you were asking to make a circle with corners...
watch some other windows programs, once you activate the menu, the input cursor is gone. it has to. or your menu would not work.
but a menu will automatically take the focus once you click on it, if you didnīt take counter measures, so i canīt see a problem...
you can set the focus to another panel , but you will loose the input cursor on the panel where the user "is".
for this, have a look at "CWnd::SetFocus()"
January 14th, 2003, 01:18 PM
umm I am not sure if I am understanding what your asking. Let me clarify. The top and bottom rows are banners. HTML views. so there is no cursor in them. When the user clicks on the banner, (focus is set) i called a web page to load in the back ground. but unless the user clicks in the middle or somewhere not in that pane the user can't close the web page. And my menus are similar to this, so I decided that if there was a way to fix that problem I could solve most of the problems I have. I hope that makes since. I have tried a couple different ways but none have worked because the pane is inside another frame.