The InterceptMenuAction is used in conjunction with the MenuIntercept notification. That notification must be registered first. Then specific commands can be intercepted.
Syntax Imagenation.DDE.InterceptMenuAction(int menuID, VARIANT_BOOL state, long lhWnd)
Parameters
menuID
identifier of the command to intercept. (Please note that you can intercept commands in menus, but not menus themselves.) See Command IDs
state
whether to intercept the command:
0 do not intercept
1 intercept
lhWnd
handle of the notification window created to receive notification messages. This must be the same one that is used for RegisterNotify.
See also