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

Bug in CommandBar

Expand Messages
  • Yuri Kirilenko
    Hi all! symptom: ======= The application hangs up, at execution of the menu command from the keyboard. For example + for &File option. file: ====
    Message 1 of 1 , 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
    Your message has been successfully submitted and would be delivered to recipients shortly.