关于wince中的全屏显示
1. 在WinCe下如何让程序全屏
;修改任务栏
[HKEY_LOCAL_MACHINESoftwareMicrosoft
"Default"=dword:1
[HKEY_LOCAL_MACHINESoftwareMicrosoft
"SHOW_CLOCK"=dword:0
[HKEY_LOCAL_MACHINESoftwareMicrosoft
"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);
2. 对于Pocket PC,也有类似的方法
MFC PocketPC应用程序全屏方法
基于对话框的MFC PocketPC应用程序全屏方法
1.需要将整个窗口向上平移26个像素以到达屏幕顶部,同时使用SHFullScreen()函数隐藏任务栏;
GetWindowRect(&rc);
rc.top-=26
MoveWindow(rc.left,rc.top,rc.right,rc.bottom,FALSE); //上移26像素
SHFullScreen(this->m_hWnd,SHFS_HIDETASKBAR); //隐藏任务栏
2.防止使用Input Panel时任务栏出现
// Generated message map functions
//{{AFX_MSG(CFullScreenDialogDlg)
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
DECLARE_MESSAGE_MAP()
BEGIN_MESSAGE_MAP(CFullScreenDialogDlg, CDialog)
ON_WM_SETTINGCHANGE()
ON_WM_ACTIVATE()
void CFullScreenDialogDlg::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
{
CWnd::OnActivate(nState, pWndOther, bMinimized);
SHFullScreen( this->m_hWnd, SHFS_HIDETASKBAR);//\D*k/a-@!O:n ~
=======================================================
IntroductionThe usual method of creating a full screen window in Windows CE involves using the function The VariablesHWND hWnd; // The main window handle HWND hWndInputPanel = NULL; // The SIP HWND hWndTaskBar = NULL; // The TaskBar HWND hWndSipButton = NULL; // The SIP Button BOOL mode = false; // Our current window mode. // True = Fullscreen // False - Windowed (Startup Default) |