接enoloo(行者无疆) CWnd::OnGetMinMaxInfo afx_msg void OnGetMinMaxInfo( MINMAXINFO FAR* lpMMI );ParameterslpMMIPoints to a MINMAXINFO structure that contains information about a window’s maximized size and position and its minimum and maximum tracking size. For more about this structure, see the MINMAXINFO structure.typedef struct tagMINMAXINFO { POINT ptReserved; POINT ptMaxSize; POINT ptMaxPosition; POINT ptMinTrackSize; POINT ptMaxTrackSize; } MINMAXINFO;
CWindow::MoveWindow BOOL MoveWindow( int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE );BOOL MoveWindow( LPCRECT lpRect, BOOL bRepaint = TRUE );SeeMoveWindow in the Win32 SDK.试试这个,, 虽然我没做过,,不过有时间会做一下!
afx_msg void OnGetMinMaxInfo( MINMAXINFO FAR* lpMMI );
在lpMMI中指定窗口的最大和最小大小。
具体可以查看msdn.
cs.x,cs.y分别子窗口的左上角的的坐标,cs.cx,cs.cy分别是子窗口的宽度和高度
afx_msg void OnGetMinMaxInfo( MINMAXINFO FAR* lpMMI );ParameterslpMMIPoints to a MINMAXINFO structure that contains information about a window’s maximized size and position and its minimum and maximum tracking size. For more about this structure, see the MINMAXINFO structure.typedef struct tagMINMAXINFO {
POINT ptReserved;
POINT ptMaxSize;
POINT ptMaxPosition;
POINT ptMinTrackSize;
POINT ptMaxTrackSize;
} MINMAXINFO;
BOOL MoveWindow( int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE );BOOL MoveWindow( LPCRECT lpRect, BOOL bRepaint = TRUE );SeeMoveWindow in the Win32 SDK.试试这个,,
虽然我没做过,,不过有时间会做一下!