CCommandAdapter Class

class CCommandAdapter: public CEventListenerBase

The command adapter class supplies a default implementation of the  ICommandListener interface. The HandleEvent function deciphers the event and maps it to a member function for handling. This class supplies a default implementation for all handler messages in the ICommandListener interface that always return FALSE. Command listeners can be derived from this class that override and implement only the handlers they are interested in.

Defined in: CommandListener.h

Class Members

inline virtual bool  OnCommandQuery(UINT nID)

Called when a command query event is received by the command listener.

inline virtual bool  OnCommand(UINT nID, int nNotifyCode)

Called when a command event is received by the command listener.