获取本地时间:GetLocalTime()
设置本地时间:SetLocalTime()
获取格林威治时间:GetSystemTimer()
设置格林威治时间:SetSystemTimer()
--------------------------------------------------
让应用程序全屏
修改任务栏
[HKEY_LOCAL_MACHINESoftwareMicrosoftShellAutoHide]
"Default"=dword:1
[HKEY_LOCAL_MACHINESoftwareMicrosoftClock]
"SHOW_CLOCK"=dword:0
[HKEY_LOCAL_MACHINESoftwareMicrosoftShellOnTop]
"Default"=dword:0
或者修改程序初始化:
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);
--------------------------------------------------
显示/隐藏光标
-
ShowCursor(FALSE); //隐藏光标
-
ShowCursor(TRUE); //显示光标
--------------------------------------------------
任务条的显示与隐藏
-
HWND DesktopBar = ::FindWindow(L"HHTaskBar",NULL);
-
::ShowWindow(DesktopBar,TRUE); //显示任务条
-
HWND DesktopBar = ::FindWindow(L"HHTaskBar",NULL);
-
::ShowWindow(DesktopBar,FALSE); //隐藏任务条
阅读(1217) | 评论(0) | 转发(0) |