1.设置对话框大小:

1 CRect   temprect(0,0,1640,1480);
2     CWnd::SetWindowPos(NULL,0,0,temprect.Width(),temprect.Height(),SWP_NOZORDER|SWP_NOMOVE);

2.使对话框全屏显示:

1     //得到显示器大小
2     int   cx,cy;
3     cx   =   GetSystemMetrics(SM_CXSCREEN);
4     cy   =   GetSystemMetrics(SM_CYSCREEN);
5     //再用MoveWindow
6     CRect   rcTemp;
7     rcTemp.BottomRight()   =   CPoint(cx,   cy);
8     rcTemp.TopLeft()   =   CPoint(0,   0);
9     MoveWindow(&rcTemp);     
 posted on 2012-10-18 10:17  Jiang, X.  阅读(27917)  评论(0编辑  收藏  举报