Community
Participate
Working Groups
The code introduced in Control.WM_CONTEXTMENU to return if the handle does not match the wParam prevents the handling of context menus if the underlying widgets are not owned/created by the programmer. In windows if a WM_CONTEXTMENU menssage is not processed by a child it propogates up the parent tree. I imagine the code was introduced to prevent this behavior. However if the widget in which the message originates is not owned by me(i.e. anything that ActiveX components create) I cannot provide any sort of context menu because the events don't pass up my way(they do but are ignored at a lower level).
I'm not sure how this bug got posted twice. *** This bug has been marked as a duplicate of 35424 ***