如果没有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);
即可
时间: 2024-10-04 17:43:30