MFC线程内获取主窗口句柄

CWnd* h_q = AfxGetApp()->GetMainWnd(); //获取主窗口的句柄

原文地址:https://www.cnblogs.com/xuandi/p/5362480.html