共用方式為


ICommandSource::PostCommand

張貼一則訊息,而不用等候處理。

void PostCommand( 
   unsigned int command 
);

參數

  • command
    要張貼之訊息的命令 ID。

備註

這個方法會以非同步方式來公佈訊息對應至 command指定的 ID。 在視窗中的訊息佇列呼叫 CWnd::PostMessage 將訊息再傳回,而不用等候對應的視窗處理訊息。

需求

Header: afxwinforms.h

請參閱

參考

ICommandSource 介面

ICommandSource::SendCommand