1个回答
展开全部
貌似创建子对话框的时候主对话框类里是有个成员变量的 这个成员变量 就是子窗口类的指针
CWnd::FromHandle
static CWnd* PASCAL FromHandle( HWND
hWnd ); 用它 再加个 指针类型强制转换
Return Value
Returns a pointer to a CWnd object when given a handle to a window. If
a CWnd object is not attached to the handle, a temporary CWnd
object is created and attached.
The pointer may be temporary and should not be stored for later use.
CWnd::FromHandle
static CWnd* PASCAL FromHandle( HWND
hWnd ); 用它 再加个 指针类型强制转换
Return Value
Returns a pointer to a CWnd object when given a handle to a window. If
a CWnd object is not attached to the handle, a temporary CWnd
object is created and attached.
The pointer may be temporary and should not be stored for later use.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询