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.
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
This can happen only if main window has focus which is very rare. Fixed by checking for m_bAttachedMenu.
atlctrlw.h, rev. 627
This can happen only if main window has focus which is very rare. Fixed by checking for m_bAttachedMenu.
atlctrlw.h, rev. 627