简体   繁体   English

如何使用Win32 C ++在Windows Mobile 6.5中隐藏菜单?

[英]How to hide menu in Windows Mobile 6.5 with win32 c++?

How to hide menu bar ( the one with start button ) in Windows Mobile 6.5 with win32 c++, I mean show full screen? 如何使用Win32 C ++在Windows Mobile 6.5中隐藏菜单栏(带有“开始”按钮的菜单栏),我的意思是显示全屏? Can't find a proper answer to that... Long time googleing, so far unsuccessful. 找不到合适的答案...长时间的Google搜索,至今仍未成功。

To make a window on weh 6.5 3 really fullscreen, you have to set the menu of the window to NULL and resize the window. 要使6.5 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

This is of my iLock kiosk mode starter tool at http://code.google.com/p/ilock5/source/browse/trunk/iLock5/iLock5.cpp . 这是我的iLock信息亭模式启动程序工具,位于http://code.google.com/p/ilock5/source/browse/trunk/iLock5/iLock5.cpp Article at http://www.hjgode.de/wp/2010/03/18/ilock-a-tool-to-lock-the-startup-process-of-a-windows-mobile-device/ 文章位于http://www.hjgode.de/wp/2010/03/18/ilock-a-tool-to-lock-the-startup-process-of-a-windows-mobile-device/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM