CCommandQueryEvent Class

class CCommandQueryEvent: public ICommandQueryEvent

A command query event is sent to command listeners to find out if a given command is handled. The command query only contains the command ID for a given command.

Defined in: CommandEvent.h

Class Members

inline CCommandQueryEvent(UINT nCommandID)

Construct a command query event from a command ID.

unsigned long m_ulRefCount

Reference count.

UINT m_nCommandID

Command ID to query.

inline virtual bool QueryGuid(REFGUID guid, void **ppvObj)

Retrieve a pointer to an interface supported by this object.

inline virtual ULONG STDMETHODCALLTYPE AddRef()

Add a reference to this object.

inline virtual ULONG STDMETHODCALLTYPE Release()

Release a reference to this object.

inline virtual bool Dispatch(IQueryGuid* pIListener)

Dispatches the event to the given event listener.

inline virtual UINT GetCommandID() const

Return the command ID.

inline virtual void SetCommandID(const UINT nCommandID)

Set the command ID.