阅读背景:

vc实现窗口全屏的一些方法

来源:互联网 

1.

void CXXXDlg::SetFullScreen() { int frameWidth =  GetSystemMetrics(SM_CXFRAME); int frameHeight = GetSystemMetrics(SM_CYFRAME); int captionHeight = GetSystemMetrics(SM_CYCAPTION); int screenWidth = GetSystemMetrics(SM_CXSCREEN); int screenHeight = GetSystemMetrics(SM_CYSCREEN); CRect rect; GetClientRect(&rect); rect.left = rect.left - frameWidth; rect.top = rect.top - frameHeight - captionHeight ; rect.bottom = rect.top + screenHeight + 2 * frameHeight + captionHeight; rect.right = rect.left + screenWidth + 2 * frameWidth; ShowWindow(SW_HIDE); SetWindowPos(&wndTopMost, rect.left, rect.top, rect.Width(), rect.Height(), SWP_SHOWWINDOW); }void CXXXDlg::SetFullScreen() { int fra



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: