CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: vandy_mike

Search: Search took 0.02 seconds.

  1. Replies
    19
    Views
    18,809

    Re: [RESOLVED] Trouble with MDI GetSubMenu

    I do see the merit in what you are suggesting, but in my case - the menu arrangement is static. I don't need to worry about the "File" menu being 1st or 3rd. My only requirement is that I'm doing a...
  2. Replies
    19
    Views
    18,809

    Re: Trouble with MDI GetSubMenu

    For what it's worth... to anyone else who runs into this problem...

    This issue is when I try to access the submenus using MF_BYPOSITION. The cause of this problem is that when any MDI child...
  3. Replies
    19
    Views
    18,809

    Re: Trouble with MDI GetSubMenu

    Since I'm getting a pointer for the main window at the beginning...

    I would imagine that this means I'm re-using the same menu. Either way, I don't see why I can sometimes access the submenu of a...
  4. Replies
    19
    Views
    18,809

    Re: Trouble with MDI GetSubMenu

    First...

    pCmdUI->GetText() does not exist... so I would still have to do something like GetMenuString.

    Second...

    That doesn't help me for "pop-up" menus, only the items in the pop-up.

    ...
  5. Replies
    19
    Views
    18,809

    Re: Trouble with MDI GetSubMenu

    so then you would suggest changing ALL of the functions such as...


    void CDocType1View::OnUpdateEditGroup1(CCmdUI *pCmdUI)
    {
    CMenu *pMenu = AfxGetApp()->m_pMainWnd->GetMenu();
    ...
  6. Replies
    19
    Views
    18,809

    Re: Trouble with MDI GetSubMenu

    This had no impact at all. It looks like my check to bActivate was probably sufficient... but I'm still getting a crash.
  7. Replies
    19
    Views
    18,809

    Re: Trouble with MDI GetSubMenu

    Isn't this what I'm doing in "OnActivateView" right before the call to "RebuildMenu"? I would think that the condition of bActivate == TRUE would take care of this.
  8. Replies
    19
    Views
    18,809

    Re: Trouble with MDI GetSubMenu

    Wouldn't that just update the text once you mouse over? I want the text to change as soon as the operator changes from English -> Spanish (etc.), not when they actually go through the menu system.
  9. Replies
    19
    Views
    18,809

    Re: Trouble with MDI GetSubMenu

    The translations are not hard coded. There is a database that the operator is able to modify so that they can have their own "custom" translations if need be. Because of that, I can't really create...
  10. Replies
    19
    Views
    18,809

    [RESOLVED] Trouble with MDI GetSubMenu

    I have a MDI program that is setup to support multiple languages. This app is configured to allow the operator to swap the language on-the-fly and all the menus/dialogs/etc will automatically switch...
Results 1 to 10 of 10





Click Here to Expand Forum to Full Width

Featured