关于全屏的问题
我使用以下代码来实现一个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;
谢谢!