以下是引用michaelsoft在2006-10-13 14:38:26的发言:
ON_COMMAND_EX
ON_COMMAND_EX
我也看到过这个消息,可是在classwiard里,button按钮的消息只有COMMAND 和UPDATE_COMMAND_EX两种啊?
生活充满阳光,快乐无处不在
ON_COMMAND_EX
An extended form of command message handlers is available for advanced uses. The ON_COMMAND_EX macro is used instead and provides a superset of the ON_COMMAND functionality. Extended command-handler member functions take a single parameter, a UINT containing the command ID, and return a BOOL. The BOOL return should be TRUE to indicate that the command has been handled, otherwise routing will continue to other command target objects.
ON_COMMAND_EX(
id,
memberFxn );
Parameters
id
The command ID.
memberFxn
The name of the message-handler function to which the command is mapped.