void CPlugin::SetFullScreen()
{
if (!m_bFullScreen)
{
m_pWnd = GetParent(GetWnd());
//GetWindowRect(m_hWnd, &m_pRect);
SetParent(GetWnd(),GetDesktopWindow());
int cx = ::GetSystemMetrics(SM_CXSCREEN);
int cy = ::GetSystemMetrics(SM_CYSCREEN);
SetWindowPos(NULL,HWND_TOPMOST,0,0,cx,cy,SWP_FRAMECHANGED|SWP_DEFERERASE);
//MessageBox(NULL,"fuck your sisters","OOXX",MB_OK); m_bFullScreen = true;
}
else
{
SetParent(GetWnd(),m_pWnd);
SetWindowPos(GetWnd(),HWND_TOPMOST,m_pRect.left, m_pRect.top, m_pRect.right, m_pRect.bottom, SWP_FRAMECHANGED|SWP_DEFERERASE);
m_bFullScreen = false;
}
}为什么在chrome上面可以全屏 在火狐上面就不能 播放器的左上角确实移动到了屏幕的左上角,但是播放器宽度和高度没有变化 求解,谢谢
{
if (!m_bFullScreen)
{
m_pWnd = GetParent(GetWnd());
//GetWindowRect(m_hWnd, &m_pRect);
SetParent(GetWnd(),GetDesktopWindow());
int cx = ::GetSystemMetrics(SM_CXSCREEN);
int cy = ::GetSystemMetrics(SM_CYSCREEN);
SetWindowPos(NULL,HWND_TOPMOST,0,0,cx,cy,SWP_FRAMECHANGED|SWP_DEFERERASE);
//MessageBox(NULL,"fuck your sisters","OOXX",MB_OK); m_bFullScreen = true;
}
else
{
SetParent(GetWnd(),m_pWnd);
SetWindowPos(GetWnd(),HWND_TOPMOST,m_pRect.left, m_pRect.top, m_pRect.right, m_pRect.bottom, SWP_FRAMECHANGED|SWP_DEFERERASE);
m_bFullScreen = false;
}
}为什么在chrome上面可以全屏 在火狐上面就不能 播放器的左上角确实移动到了屏幕的左上角,但是播放器宽度和高度没有变化 求解,谢谢
if (!m_bFullScreen)
{
m_pWnd = GetParent(GetWnd());
//GetWindowRect(m_hWnd, &m_pRect);
SetParent(GetWnd(),GetDesktopWindow());
int cx = ::GetSystemMetrics(SM_CXSCREEN);
int cy = ::GetSystemMetrics(SM_CYSCREEN);
//MoveWindow(GetWnd(), 0, 0, cx, cy, TRUE);
SetWindowPos(NULL,HWND_TOPMOST,0,0,cx,cy,SWP_FRAMECHANGED|SWP_DEFERERASE);
//MessageBox(NULL,"fuck your sisters","*****",MB_OK);
m_bFullScreen = true;
}
else
{
SetParent(GetWnd(),m_pWnd);
//MoveWindow(m_pWnd, m_pRect.left, m_pRect.top, m_pRect.right, m_pRect.bottom, TRUE);
SetWindowPos(GetWnd(),HWND_TOPMOST,m_pRect.left, m_pRect.top, m_pRect.right, m_pRect.bottom, SWP_FRAMECHANGED|SWP_DEFERERASE);
m_bFullScreen = false;
}