ICommandEvent Class

class ICommandEvent: public IWinEvent

Interface to a Windows command event. A command event contains a command identifier, a notification code, and possibly a handle to the control the generated the event.

Defined in: CommandEvent.h

Class Members

virtual UINT GetCommandID() const

Return the command ID.

virtual int GetNotifyCode() const

Return the notify code.

virtual HWND GetControlHandle() const

Return the control handle.

virtual void SetCommandID(const UINT nCommandID)

Set the command ID.

virtual void SetNotifyCode(const int nNotifyCode)

Set the notify code.

virtual void SetControlHandle(HWND hCtl)

Set the control handle.