Child window can't get focus
-
The m_child is derive from CWnd, but it can't get focus, the caption of this child window is always gray. m_child.Create( NULL, "OK", WS_VISIBLE | WS_CHILD | WS_CAPTION, rc, this, 100, NULL );
You need to provide more information. What class is m_Child? Where are you creating it? If this is on a dialog, you may be missing WS_TABSTOP. If you are inheriting from CStatic then you will also have issues, as that passed focus to its parent. You should also look up WM_GETDLGCODE. etc. Iain.
-
You need to provide more information. What class is m_Child? Where are you creating it? If this is on a dialog, you may be missing WS_TABSTOP. If you are inheriting from CStatic then you will also have issues, as that passed focus to its parent. You should also look up WM_GETDLGCODE. etc. Iain.