Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
Operating System: ReactOS
Platform: x86 Hardware
Description
WM_COMMAND msg is being sent to edit control by context menu and should not be
A good example of this causing problems is any vb app with an edit control.
Trying to use context menu crashes application due to WM_COMMAND.
Menu.c function MenuExecFocusedItem is where the problem is.
All tests i have done on windows dont show this message being sent to an edit control. I believe WM_COMMAND does get sent from menu control if the window is the main window, thought not tested.
To fix this, the edit control needs to handle WM_MENUSELECT and send clip board message to iself based on the last WM_MENUSELECT msg received, As the very last WM_MENUSELECT has wparam ffff0000 and lparam 0 which is menu destruction notification.