Menu.ProcessCmdKey(Message, Keys) 方法

定义

处理命令键。

protected public:
 virtual bool ProcessCmdKey(System::Windows::Forms::Message % msg, System::Windows::Forms::Keys keyData);
protected internal virtual bool ProcessCmdKey (ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData);
abstract member ProcessCmdKey : Message * System.Windows.Forms.Keys -> bool
override this.ProcessCmdKey : Message * System.Windows.Forms.Keys -> bool
Protected Friend Overridable Function ProcessCmdKey (ByRef msg As Message, keyData As Keys) As Boolean

参数

msg
Message

通过引用传递的 Message,表示要处理的窗口消息。

keyData
Keys

Keys 值之一,表示要处理的键。

返回

Boolean

如果字符已由控件处理,则为 true;否则为 false

适用于