Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
COMMANDMSG (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINMESSAGEMGR
struct _COMMANDMSG {
USHORT source; /* mp2 */
BOOL fMouse;
USHORT cmd; /* mp1 */
USHORT unused;
};
The COMMANDMSG structure is used by the COMMANDMSG macro to access
information passed in the parameters of the WM_COMMAND, WM_HELP, and
WM_SYSCOMMAND messages. Unlike other MS OS/2 structures, this structure is
not defined as a type.
Field Description
────────────────────────────────────────────────────────────────────────────
source Specifies the source type. It can be one of the following values:
Value Meaning
────────────────────────────────────────────────────────────────────
CMDSRC_PUSHBUTTON Posted by a push-button control. The usCmd
parameter is the window identifier of the push
button.
CMDSRC_MENU Posted by a menu control. The usCmd parameter is
the identifier of the menu item.
CMDSRC_ACCELERATOR Posted as the result of an accelerator. The
usCmd parameter is the accelerator command
value.
CMDSRC_OTHER Other source. The usCmd parameter gives further
control-specific information defined for each
control type.
fMouse Specifices whether the message was posted as a result of a
pointing-device operation. A value of TRUE indicates a pointin
device (mouse) was used. A value of FALSE indicates a keyboard
operation.
cmd Specifies the command.
unused This field is not used.
See Also
WM_COMMAND, WM_HELP, WM_SYSCOMMAND, COMMANDMSG
♦