Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 35426 - Control.setMenu does not work if the underlying widgets are not owned.
Summary: Control.setMenu does not work if the underlying widgets are not owned.
Status: RESOLVED DUPLICATE of bug 35424
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-20 17:41 EST by Rob Hughes CLA
Modified: 2003-03-20 18:11 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Hughes CLA 2003-03-20 17:41:56 EST
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).
Comment 1 Rob Hughes CLA 2003-03-20 18:11:06 EST
I'm not sure how this bug got posted twice.

*** This bug has been marked as a duplicate of 35424 ***