共用方式為


ICommandSource::SendCommand

傳送訊息並等候它會在傳回之前處理作業。

void SendCommand( 
   unsigned int command 
);

參數

  • command
    要傳送之訊息的命令 ID。

備註

這個方法會以同步方式傳送對應的詳細資訊 command指定的 ID。 在視窗中的訊息佇列呼叫 CWnd::SendMessage 將訊息,並等候該視窗程序會先處理訊息。

需求

Header: afxwinforms.h

請參閱

參考

ICommandSource 介面

ICommandSource::PostCommand