使用此语句将窗口最大化,窗口全屏显示,桌面下方有任务栏时会出现:任务栏部分盖过窗口底部,
ShowWindow(SW_SHOWMAXIMIZED); // 窗口最大化
int cx = GetSystemMetrics(SM_CXFULLSCREEN);
int cy = GetSystemMetrics(SM_CYFULLSCREEN);
CRect rt;
SystemParametersInfo(SPI_GETWORKAREA, 0, &rt, 0);
cy = rt.bottom;
MoveWindow(0, 0, cx, cy);