如果没有WS_CAPTION只能自己MoveWindow

步骤:

OnInitDialog中加入:

int cx = GetSystemMetrics(SM_CXFULLSCREEN);
int cy = GetSystemMetrics(SM_CYFULLSCREEN);
CRect rt;
SystemParametersInfo(SPI_GETWORKAREA,0,&rt,0);
cy = rt.bottom;
HWND hWnd = AfxGetMainWnd()->m_hWnd;
MoveWindow(hWnd,0,0,cx,cy,TRUE);

即可

相关文章:

  • 2022-12-23
  • 2021-04-09
  • 2022-12-23
  • 2022-02-28
  • 2021-06-13
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
猜你喜欢
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2021-07-22
相关资源
相似解决方案