Control.ProcessCmdKey 方法 [C#]请参见 Control 类 | Control 成员 | System.Windows.Forms 命名空间 | Control 成员(Visual J# 语法) | C++ 托管扩展编程 要求 平台: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列.NET Framework 安全性: UIPermission,它允许继承类的所有窗口调用此方法。关联枚举:UIPermissionWindow.AllWindows 语言 C#C++JScriptVisual Basic全部显示 处理命令键。[Visual Basic] Protected Overridable Function ProcessCmdKey( _ ByRef msg As Message, _ ByVal keyData As Keys _ ) As Boolean[C#] protected virtual bool ProcessCmdKey( ref Message msg, Keys keyData );[C++] protected: virtual bool ProcessCmdKey( Message* msg, Keys keyData );[JScript] protected function ProcessCmdKey( msg : Message, keyData : Keys ) : Boolean;参数 msg 通过引用传递的 Message,它表示要处理的窗口消息。 keyData Keys 值之一,它表示要处理的键。
Control 类 | Control 成员 | System.Windows.Forms 命名空间 | Control 成员(Visual J# 语法) | C++ 托管扩展编程
要求
平台: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列.NET Framework 安全性: UIPermission,它允许继承类的所有窗口调用此方法。关联枚举:UIPermissionWindow.AllWindows
语言
C#C++JScriptVisual Basic全部显示
处理命令键。[Visual Basic]
Protected Overridable Function ProcessCmdKey( _
ByRef msg As Message, _
ByVal keyData As Keys _
) As Boolean[C#]
protected virtual bool ProcessCmdKey(
ref Message msg,
Keys keyData
);[C++]
protected: virtual bool ProcessCmdKey(
Message* msg,
Keys keyData
);[JScript]
protected function ProcessCmdKey(
msg : Message,
keyData : Keys
) : Boolean;参数
msg
通过引用传递的 Message,它表示要处理的窗口消息。
keyData
Keys 值之一,它表示要处理的键。