ToolStrip.ProcessCmdKey(Message, Keys) 方法

定義

處理命令按鍵。Processes a command key.

protected:
 override bool ProcessCmdKey(System::Windows::Forms::Message % m, System::Windows::Forms::Keys keyData);
protected override bool ProcessCmdKey (ref System.Windows.Forms.Message m, System.Windows.Forms.Keys keyData);
override this.ProcessCmdKey : Message * System.Windows.Forms.Keys -> bool
Protected Overrides Function ProcessCmdKey (ByRef m As Message, keyData As Keys) As Boolean

參數

m
Message

由參考所傳遞的 Message,代表要處理的視窗訊息。A Message, passed by reference, that represents the window message to process.

keyData
Keys

其中一個 Keys 值,表示要處理的按鍵。One of the Keys values that represents the key to process.

傳回

Boolean

如果字元已由控制項處理,則為 true,否則為 falsetrue if the character was processed by the control; otherwise, false.

適用於