vs2010 CWnd::CreateEx Warning: Window creation failed: GetLastErro

BOOL bRet=CWnd::CreateEx(0, AfxRegisterWndClass(0), 0, WS_POPUP,point.x, point.y, m_width, m_hight, parentWnd->GetSafeHwnd(), NULL, NULL);   
因为我在CreateEx 的时候同时使用了  WS_POPUP |WS_CHILD 2种类型,这2种类型是冲突的
 
不知道为什么在vs2003下能正常使用
 
 
方法解释原地址:http://stackoverflow.com/questions/10348974/warning-when-using-createex-for-window-creation-in-vc

posted on 2018-02-09 11:04  &大飞  阅读(142)  评论(0编辑  收藏  举报

导航