1、修改注册表
;修改任务栏
[HKEY_LOCAL_MACHINESoftwareMicrosoftShellAutoHide]
"Default"=dword:1
[HKEY_LOCAL_MACHINESoftwareMicrosoftClock]
"SHOW_CLOCK"=dword:0
[HKEY_LOCAL_MACHINESoftwareMicrosoftShellOnTop]
"Default"=dword:0
2、在应用程序中添加如下代码段
1 将dialog属性中的styles的title bar去掉
2 在dialog初始化时加入:
-
int iFullWidth = GetSystemMetrics(SM_CXSCREEN);
-
int iFullHeight = GetSystemMetrics(SM_CYSCREEN);
-
::SetWindowPos(this->m_hWnd, HWND_TOPMOST, 0, 0, iFullWidth, iFullHeight, SWP_NOOWNERZORDER|SWP_SHOWWINDOW);
-
int iFullWidth = GetSystemMetrics(SM_CXSCREEN);
-
int iFullHeight = GetSystemMetrics(SM_CYSCREEN);
-
::SetWindowPos(this->m_hWnd, HWND_TOPMOST, 0, 0, iFullWidth, iFullHeight, SWP_NOOWNERZORDER|SWP_SHOWWINDOW);
3、将其他应用程序全屏
-
LPCTSTR pName;
-
-
// TODO: Add extra initialization here
-
CWnd *pwnd = FindWindow(NULL,_T("DetectMemory")); //希望找到的窗口名称
-
HWND hwnd = pwnd->GetSafeHwnd(); //得到它的HWND
-
-
int iFullWidth = GetSystemMetrics(SM_CXSCREEN);
-
int iFullHeight = GetSystemMetrics(SM_CYSCREEN);
-
::SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, iFullWidth, iFullHeight, SWP_NOOWNERZORDER|SWP_SHOWWINDOW);
阅读(1218) | 评论(0) | 转发(0) |