Поделиться через


ICommandSource::SendCommand

Sends a message and waits for it to be processed before returning.

void SendCommand( 
   unsigned int command 
);

Parameters

  • command
    The command ID of the message to be sent.

Remarks

This method synchronously sends the message mapped to the ID specified by command. It calls CWnd::SendMessage to place the message in the window's message queue and waits until that window procedure has processed the message before returning.

Requirements

Header: afxwinforms.h

See Also

Reference

ICommandSource Interface

ICommandSource::PostCommand