This class represents a command sink.
![]() | PCommandSink ( const char * className, const char * commandName ) Register the command name which is attached to the specific window class. |
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
This class represents a command sink. This works in conjunction with the PCommandSource and PCommandManager classes to implement dynamically bound commands on PTopLevelWindow or PMDIDocWindow classes.The user does not directly create descendents of this abstract class. These are created by a series of macros that are used in the declaration of the users PTopLevelWindow or PMDIDocWindow class descendent.
To create a command sink, use one of the following macros: PDECLARE_COMMAND_X PDECLARE_COMMAND_XE PDECLARE_COMMAND_XS PDECLARE_COMMAND_XES PDECLARE_COMMAND PDECLARE_COMMAND_ENABLE PDECLARE_COMMAND_VALUE PDECLARE_COMMAND_FULL
virtual void Execute( PTitledWindow * wind ) const
virtual BOOL Enabled( PTitledWindow * wind ) const
virtual PINDEX Value( PTitledWindow * wind ) const
PCommandSink( const char * className, const char * commandName )
commandName - Arbitrary name of the command.
Alphabetic index HTML hierarchy of classes or Java