Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Menu items disappear (2.54) Collapse All
Subject Author Date
Jonas Gauffin Sep 28, 2006 - 3:46 AM

I have three items in my main menu: File, View, Help.
Sometimes "Help" dissapears, and sometimes both "View" and "Help" dissapears.
I can get them back by undocking the menu, they are shown directly then, from the main window.

I do not have support for customization in my app (they three menu alternatives should alway be visible, there are no option to hide them).
I’m using file serialization for the prof uis state, each user have it’s own appearence (prof-uis state file) that is loaded when the user logs in.

Technical Support Sep 28, 2006 - 11:49 AM

Unfortunately we failed to reproduce this with our samples. Could you tell us what the steps should be followed to reproduce the problem?

Jonas Gauffin Sep 28, 2006 - 12:05 PM

It only happen sometimes. It may have to do with that I have added resources during the development that is not part of the previously saved state.

Massimo Germi Sep 28, 2006 - 7:49 AM

I have the same problem when I switch my application from full screen to normal view, in fullscreen mode menubar is hided.

TX

Jonas Gauffin Sep 28, 2006 - 8:02 AM

Then we dont have the same problem. For me, the menubar is visible, it’s just some of the menu items that are hidden.
And they are visible again if I undock the menubar (drag it out ) from the main window.

Massimo Germi Sep 28, 2006 - 8:48 AM

Yes, is my situation, when I switch from fullscreen to normal view, somtimes only some item of menu are hided and not entire menubar.

Technical Support Sep 29, 2006 - 11:51 AM

We reproduced the problem. To fix it, please update the source code of CExtToolControlBar::WindowProc():

LRESULT CExtToolControlBar::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
    if( message == WM_TIMER && wParam == 0x444 )
    {
        if(     CExtPopupMenuWnd::IsMenuTracking()
            ||  g_bMenuTracking
            ||  _DraggingGetBar() != NULL
            )
            return 0;
        KillTimer( 0x444 );
        CFrameWnd * pFrame = GetParentFrame();
        if( pFrame != NULL )
        {
            ASSERT_VALID( pFrame );
            pFrame->RecalcLayout();
            if( pFrame->IsKindOf(RUNTIME_CLASS(CMiniDockFrameWnd)) )
                pFrame->SendMessage( WM_NCPAINT );
        }
        return 0;
    }
    if( message == WM_WINDOWPOSCHANGED )
    {
        _RecalcPositionsImpl();
#if (!defined __EXT_MFC_NO_CUSTOMIZE)
        CExtCustomizeSite * pSite = GetCustomizeSite();
        if( pSite != NULL && pSite->IsCustomizeMode() )
            pSite->ActiveItemSet();
#endif
    }
    switch( message )
    {
    case WM_WINDOWPOSCHANGED:
    case WM_SIZE:
        _RedrawOnPosChanged();
        break;
    }
    return CExtControlBar::WindowProc( message, wParam, lParam );
}


Wes Aday Sep 30, 2006 - 1:09 PM

I have a suggestion. How about a "Snippets" forum where you can post items such as this so it would be easier to find and we can all benefit from the changes?