Windows CE5.0: unable to hide command bar!!!

I developed  an application for critical healthcare that must run in fullscreen mode.
Now I'm trying to migrate to Windows CE 5.0, but I can't hide the bottom bar (command or menu bar ).
I already tryied various combinations of
CCommandBar
SHFullScreen
SHFindMenuBar
CommandBar_Show
ecc...

this issue will jeopardize the entire project.
Hope someone can help me......





Answer this question

Windows CE5.0: unable to hide command bar!!!

  • Drewid

    YES!

    You Rock... Where did you find that... I had the SHIDIF_FULLSCREENNOMENUBAR but it didn't work ... but the adding the SHFindMenuBar and SW_HIDE worked...


    Thank you Valerio, thank you!



  • AUEX

    Idea I've a gift for you....


    BOOL Ctest_fullscreenDlg::OnInitDialog()
    {
        CDialog::OnInitDialog();
        SHINITDLGINFO sid;
        sid.dwMask = SHIDIM_FLAGS;
        sid.dwFlags = SHIDIF_FULLSCREENNOMENUBAR;
        sid.hDlg = m_hWnd; ::SHInitDialog(&sid);
        HWND hBar =SHFindMenuBar(m_hWnd);
        ::ShowWindow(hBar,SW_HIDE);
         ......

     



    I'm an idiot. It was so simple.....


  • vbvj

    Nope, it isn't.....

    The only route I haven't tried yet is trying to write a GAPI program without making it a game program....

    Like I said before I can get the CView to go full-screen (with a few bad things,) but I can't get a CDialog box to go fullscreen.  When I used eVC 3.0 I was able to get a full screen, ported the same code over in VSC++ beta 2005 and I can't get the menu bar at the bottom to disappear and I can't put anything in the menu bar (CDialog prevents it.)

    Heck the CDialog has a member m_bFullScreen but it does NOTHING....

    Someone has to know more about this... Why does VSC++ beta 2005 not allow the CDialog box to go full screen   Tongue TiedTongue TiedTongue Tied




  • Fremen


    http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/mob5tskhowtocreatefull-screenwindow.asp

    I hope it'll help.




  • HoldenDT

    Sorry, this isn't an answer but more of a uh yea.....

    I've also tried for about a month now to figure this out without any luck....

    I've recently moved to a CView instead of a CDialogbox approach but I am running into many problems making the CView act and show things like a Dialog box.

    So, yes, the CView goes fullscreen; but there are still many problems with the fullscreen and using a CView instead of a CDialogbox.

    some problems I've noticed:
    1 - popups don't disappear after they are shown
    2 - if the IP icon is visible before your app is launched you can't get rid of it
    3 - tab and hold doesn't erase itself

    Now I believe that these are because I am not that familiar with the CView as I am with CDialogBox and I believe the CView wasn't designed to contain controls (but you can do it, mannually,) and maybe I just don't know how to handle them all..

    So I really would like to know how you can make a CDialogbox go fullscreen in the VSC++ 2005 beta program.


  • Windows CE5.0: unable to hide command bar!!!