关于全屏的问题

storein storein 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我使用以下代码来实现一个HtmlView的全屏,但为什么
无论如何调整参数,都在下面有一部分不是全屏的?

m_wndToolBar.ShowWindow (SW_HIDE);
m_wndStatusBar.ShowWindow (SW_HIDE);
GetWindowRect(&m_mainRect);
// remove the caption of the mainWnd:
LONG style=::GetWindowLong(m_hWnd,GWL_STYLE);
style&=~WS_CAPTION;
::SetWindowLong(m_hWnd,GWL_STYLE,style);
int screenx=GetSystemMetrics(SM_CXSCREEN);
int screeny=GetSystemMetrics(SM_CYSCREEN);
// resize:
SetWindowPos(NULL,-4,-20,screenx+8,screeny+40,SWP_NOZORDER);
this->ShowWindow (SW_SHOWNORMAL);
RecalcLayout();

其中 CRect m_mainRect;

谢谢!
...全文
评论 6
收藏 已收藏
分享
返回顶部
storein
VC/MFC 16,551 成员 421,605 内容