Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我的应用程序有多个窗口时。GetTopLevelParent 只返回一个结果。以下代码是否作用于所有窗口?
HWND tParent = CWnd::GetTopLevelParent(); // Get a valid handle now. if (tParent != NULL) { cwnd->SendMessageToDescendants(WM_INITIALUPDATE, 0, 0, TRUE, TRUE); }