int sw = GetSystemMetrics(SM_CXSCREEN);
int sh = GetSystemMetrics(SM_CXSCREEN);
LONG l_WinStyle = GetWindowLong(this->m_hWnd,GWL_STYLE);
SetWindowLong(this->m_hWnd,GWL_STYLE,(l_WinStyle | WS_POPUP) & ~WS_CAPTION);
::MoveWindow(this->m_hWnd, 0, 0, sw, sh, TRUE);
int sh = GetSystemMetrics(SM_CXSCREEN);
LONG l_WinStyle = GetWindowLong(this->m_hWnd,GWL_STYLE);
SetWindowLong(this->m_hWnd,GWL_STYLE,(l_WinStyle | WS_POPUP) & ~WS_CAPTION);
::MoveWindow(this->m_hWnd, 0, 0, sw, sh, TRUE);
本文介绍了一种使用 C++ 在 Windows 平台上实现全屏窗口的方法。通过获取屏幕尺寸并调整窗口样式来创建全屏效果。
1393

被折叠的 条评论
为什么被折叠?



