全屏方案
来源:互联网 发布:手机网络限制软件 编辑:程序博客网 时间:2024/05/16 06:13
void CDemoPlay::OnLButtonDblClk(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CRect rect;
for (int i = 0; i < 9; ++i)
{
plans[i].GetWindowRect(rect);
ScreenToClient(rect);
if(rect.PtInRect(point))
{
m_bFullScreen = !m_bFullScreen;
LONG style = ::GetWindowLong(this->m_hWnd, GWL_STYLE);
if (m_bFullScreen)
{
// 全屏通道号
m_fullNum = i;
// 用mfc隐藏系统任务栏
//CWnd *wnd = FindWindow("Shell_TrayWnd", NULL);
//HWND hStar = FindWindowEx(NULL, NULL, "Button", NULL);
//wnd->SetWindowPos(NULL, 0, 0, 0, 0, SWP_HIDEWINDOW);
m_hWndParent = ::GetParent(m_hWnd);
::ShowWindow(m_hWndParent, SW_HIDE);
//::ShowWindow(hStar, SW_HIDE);
::SetParent(m_hWnd, NULL);
//style &= ~(WS_DLGFRAME | WS_THICKFRAME);
//SetWindowLong(this->m_hWnd, GWL_STYLE, style);
//this->ShowWindow(SW_SHOWMAXIMIZED);
int nScreenWidth = GetSystemMetrics(SM_CXSCREEN);
int nScreenHeight = GetSystemMetrics(SM_CYSCREEN);
::SetWindowPos(this->m_hWnd, HWND_TOPMOST, 0, 0, nScreenWidth, nScreenHeight, SWP_FRAMECHANGED);
//m_objpl.login(GetDlgItem(IDC_STC_1)->m_hWnd, "192.168.1.125", 80, "admin", "9999", 0);
goto _exit;
}
else
{
// 用mfc显示系统任务栏
//CWnd *wnd = FindWindow("Shell_TrayWnd", NULL);
//HWND hStar = FindWindowEx(NULL, NULL, "Button", NULL);
//wnd->SetWindowPos(NULL, 0, 0, 0, 0, SWP_SHOWWINDOW);
//style |= WS_DLGFRAME;
//SetWindowLong(this->m_hWnd, GWL_STYLE, style);
::SetParent(m_hWnd, m_hWndParent);
::ShowWindow(m_hWndParent, SW_SHOW);
//::ShowWindow(hStar, SW_SHOW);
goto _exit;
}
}
}
_exit:
CDialog::OnLButtonDblClk(nFlags, point);
}
{
// TODO: Add your message handler code here and/or call default
CRect rect;
for (int i = 0; i < 9; ++i)
{
plans[i].GetWindowRect(rect);
ScreenToClient(rect);
if(rect.PtInRect(point))
{
m_bFullScreen = !m_bFullScreen;
LONG style = ::GetWindowLong(this->m_hWnd, GWL_STYLE);
if (m_bFullScreen)
{
// 全屏通道号
m_fullNum = i;
// 用mfc隐藏系统任务栏
//CWnd *wnd = FindWindow("Shell_TrayWnd", NULL);
//HWND hStar = FindWindowEx(NULL, NULL, "Button", NULL);
//wnd->SetWindowPos(NULL, 0, 0, 0, 0, SWP_HIDEWINDOW);
m_hWndParent = ::GetParent(m_hWnd);
::ShowWindow(m_hWndParent, SW_HIDE);
//::ShowWindow(hStar, SW_HIDE);
::SetParent(m_hWnd, NULL);
//style &= ~(WS_DLGFRAME | WS_THICKFRAME);
//SetWindowLong(this->m_hWnd, GWL_STYLE, style);
//this->ShowWindow(SW_SHOWMAXIMIZED);
int nScreenWidth = GetSystemMetrics(SM_CXSCREEN);
int nScreenHeight = GetSystemMetrics(SM_CYSCREEN);
::SetWindowPos(this->m_hWnd, HWND_TOPMOST, 0, 0, nScreenWidth, nScreenHeight, SWP_FRAMECHANGED);
//m_objpl.login(GetDlgItem(IDC_STC_1)->m_hWnd, "192.168.1.125", 80, "admin", "9999", 0);
goto _exit;
}
else
{
// 用mfc显示系统任务栏
//CWnd *wnd = FindWindow("Shell_TrayWnd", NULL);
//HWND hStar = FindWindowEx(NULL, NULL, "Button", NULL);
//wnd->SetWindowPos(NULL, 0, 0, 0, 0, SWP_SHOWWINDOW);
//style |= WS_DLGFRAME;
//SetWindowLong(this->m_hWnd, GWL_STYLE, style);
::SetParent(m_hWnd, m_hWndParent);
::ShowWindow(m_hWndParent, SW_SHOW);
//::ShowWindow(hStar, SW_SHOW);
goto _exit;
}
}
}
_exit:
CDialog::OnLButtonDblClk(nFlags, point);
}
- 全屏方案
- 【JS】浏览器全屏方案
- Android 全屏显示方案
- Android 全屏的方案
- T400 ATI 显卡 全屏问题解决方案
- HTML5 requestFullScreen&exitFullscreen全屏兼容方案
- 微信视频全屏问题解决方案
- 微信视频全屏问题解决方案
- 微信公众账号随意扩散方案进入全屏
- 全屏
- 全屏
- 全屏
- 全屏
- 全屏
- 全屏
- 全屏
- 全屏
- 全屏
- 我所理解的设计模式(C++实现)——观察者模式(Observer Pattern)
- STL之List用法注意问题
- 模糊测试框架 Sulley 使用手记
- 流媒体方案
- android init 进程的创建
- 全屏方案
- 61招说话做事技巧
- 求组合数和全排列
- 4.8 umask函数-文件模式创建屏蔽字修改
- 黑马程序员:多线程的介绍、应用及由安全问题引出的同步代码块介绍
- linux压缩和解压缩命令详解
- PAT 1065 1066 1067 1068
- 关于"The parameter list is too long"错误的原因
- 聚集索引和非聚集索引的区别是什么