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);     

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2021-10-09
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-11
  • 2022-12-23
  • 2021-12-04
  • 2021-10-09
  • 2021-11-18
  • 2021-12-27
相关资源
相似解决方案