发布网友 发布时间:2022-04-28 12:55
共1个回答
热心网友 时间:2023-10-31 15:18
for (HWND hChildWnd = ::GetTopWindow(m_hWnd); hChildWnd != NULL; hChildWnd = ::GetNextWindow(hChildWnd, GW_HWNDNEXT)) { CWnd* pWnd = CWnd::FromHandle(hChildWnd); if (pWnd != NULL) { //... } }