Loading ...
Sorry, an error occurred while loading the content.

1Bug in CommandBar

Expand Messages
  • Yuri Kirilenko
    Apr 6, 2000
    • 0 Attachment
      Hi all!

      symptom:
      =======
      The application hangs up, at execution of the menu command from
      the keyboard. For example <Alt> + <F> for "&File" option.

      file:
      ====
      "AtlCtrlw.h"

      function:
      ========
      CCommandBarCtrlImpl::OnHookKeyDown

      error:
      =====
      if(nHot != -1)
      {
      if(wParam != VK_RETURN)
      PostMessage(WM_KEYDOWN, VK_DOWN, 0L);
      }

      correction:
      ==========
      if(nHot != -1)
      {
      if(wParam != VK_RETURN)
      DoPopupMenu(nHot, TRUE);
      }

      Regards, Yuri