CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Dallas, TX
    Posts
    10

    How to make the help menu items active after a modal dialog is displayed?

    Thank you!


  2. #2
    Join Date
    Jun 1999
    Location
    Germany
    Posts
    343

    Re: How to make the help menu items active after a modal dialog is displayed?

    Hi (try Jack be Nimble ;-))

    OK,

    i think you mean the menu items of a frame window.
    Then you can enable it with

    CMenu* pMenu = ((CFrameWnd*)AfxGetMainWnd())->GetMenu();
    //((CFrameWnd*)AfxGetMainWnd())->m_bAutoMenuEnable=FALSE;
    pMenu->EnableMenuItem(IDM_MYHELPID,MF_ENABLED);



    m_bAutoMenuEnable is use by Microsoft, for automaic disabling menuentries, ... if no corresponding command handler exists

    Gerd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured