对于多个无模式的孩子:
在孩子中,您可以保存焦点,13/08/2019 Visual Studio 2017。
您可以保存焦点,以便父级知道单击了哪个无模式子级。
在孩子的回调处理程序中:
case WM_CHILDACTIVATE: // Only gets called when the child border is click on.
//CurrentFocus = hDlg; // Example: can save the focus globally for parent usage.
//Beep(2000, 250); // So you can test
break;
case WM_GETMINMAXINFO: // Gets called when child window is being moved or sized.
//Beep(2000, 250);
break;
case WM_LBUTTONDOWN: // Only called when cursor is inside the child client area
//CurrentFocus = hDlg; // Following the focus.
//Beep(2000, 250);
break;