0
如何在Windows Mobile 6.5中用win32 C++隱藏菜單欄(帶啓動按鈕的那個),我的意思是全屏顯示? 找不到合適的答案...長時間googleing,迄今不成功。如何使用win32 C++隱藏Windows Mobile 6.5中的菜單?
如何在Windows Mobile 6.5中用win32 C++隱藏菜單欄(帶啓動按鈕的那個),我的意思是全屏顯示? 找不到合適的答案...長時間googleing,迄今不成功。如何使用win32 C++隱藏Windows Mobile 6.5中的菜單?
要在weh 6.5上創建一個窗口3 3真正的全屏,必須將窗口的菜單設置爲NULL並調整窗口的大小。
#ifdef USEMENUBAR
nclog(L"iLock5: InitInstance: USEMENUBAR...\r\n");
if(UseMenuBar==1){
// When the main window is created using CW_USEDEFAULT the height of the menubar (if one
// is created is not taken into account). So we resize the window after creating it
// if a menubar is present
if (g_hWndMenuBar)
{
nclog(L"iLock5: InitInstance: Moving window because of UseMenuBar\r\n");
RECT rc;
RECT rcMenuBar;
GetWindowRect(hWnd, &rc);
GetWindowRect(g_hWndMenuBar, &rcMenuBar);
rc.bottom -= (rcMenuBar.bottom - rcMenuBar.top);
MoveWindow(hWnd, rc.left, rc.top, rc.right-rc.left, rc.bottom-rc.top, FALSE);
}
}
#else
nclog(L"iLock5: InitInstance: USEMENUBAR undefined...\r\n");
if(UseMenuBar==0){
nclog(L"iLock5: InitInstance: Moving window without MenuBar\r\n");
//move window to upper left logical corner
MoveWindow(hWnd, 0, 0, theRect.right, theRect.bottom, FALSE);
}
#endif
這是在我的http://code.google.com/p/ilock5/source/browse/trunk/iLock5/iLock5.cpp亭的iLock起動模式工具。 Article at http://www.hjgode.de/wp/2010/03/18/ilock-a-tool-to-lock-the-startup-process-of-a-windows-mobile-device/