Menu

#279 WTL.CCommandBarCtrlImpl.AttachToWindow

v1.0 (example)
closed-fixed
None
5
2015-10-04
2015-10-03
Anonymous
No

If a CCommandBar is attached using AttachToWindow() then m_wndParent will be null but
m_wndParent is used in OnKeyDown & OnChar without checking its validity.
m_wndParent is validated before use elsewhere in the code.

See also #215.

Discussion

  • Nenad Stefanovic

    • status: open --> closed-fixed
    • assigned_to: Nenad Stefanovic
     
  • Nenad Stefanovic

    This can happen only if main window has focus which is very rare. Fixed by checking for m_bAttachedMenu.

    atlctrlw.h, rev. 627

     

Anonymous
Anonymous

Add attachments
Cancel