用SetWindowPos函数来改变对话框的大小! BOOL SetWindowPos( HWND hWnd, // handle to window HWND hWndInsertAfter, // placement-order handle int X, // horizontal position int Y, // vertical position int cx, // width int cy, // height UINT uFlags // window-positioning options );
BOOL SetWindowPos(
HWND hWnd, // handle to window
HWND hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning options
);
::IsWindow(dlg.m_hWnd)
返回FALSE
执行SetWindowPos或者说MoveWindow都会被Assert啊
如果是这样,不可能的,用SetWindowPos或者MoveWindow都可以的,