MSDN里面说了:
if hWndNewParent is not NULL and the window was previously a child of the desktop, you should clear the WS_POPUP style and set the WS_CHILD style before calling SetParent.就是如果你原来是主窗体要修改style为WS_CHILD的
if hWndNewParent is not NULL and the window was previously a child of the desktop, you should clear the WS_POPUP style and set the WS_CHILD style before calling SetParent.就是如果你原来是主窗体要修改style为WS_CHILD的
解决方案 »
- memcpy CString 造成的内存泄漏
- 用mfc在直线上取点,并注明数值
- 请教个时间函数
- 50分,int 转 string类型问题
- 紧急求助:大四即将毕业的人请进
- msdn中没有关于COM的文挡????
- 还是关于钩子的问题
- vs.net里的VC里面没有了ClassWizard(视图)怎么不用自己写例如WM_OnLButtonDown,WM_OnLButtonUp,.....Move
- 在Console Application中不能使用CSocket?
- 无模式对话框无法响应消息
- CDC画图老是奔溃,怎么回事,是不是有没有释放的内存?
- VS2010 下VC++ MFC对话框应用程序如何创建工具栏
HWND hWndChild,
HWND hWndNewParent
);
Res
An application can use the SetParent function to set the parent window of a pop-up, overlapped, or child window. The new parent window and the child window must belong to the same application.