vc2010 AfxGetMainWnd()->m_hWnd为空

vc6以后AfxGetMainWnd()->m_hWnd需要换为AfxGetApp()->m_pMainWnd->m_hWnd

原文地址:https://www.cnblogs.com/cppfans140812/p/5574321.html