Contains the handle of the right-clicked dialog or dialog element. This is typically used in the Before-Open Event to distinguish controls sharing the same context menu. Note that this is not necessarily the dialog or dialog element for which the context menu is being opened, due to "inheritance" of the container's context menu. For example, if a dialog with a context menu contains a push button without a Context Menu, right-clicking the push button will cause the CONTROL attribute to be set to the handle of the push button, even though the context menu is opened for the dialog.
Applies to | Context menu. |
---|---|
Data Type | HANDLE |
Default Value | NULL-HANDLE |
Possible Values | Handle of right-clicked dialog or dialog element. |