AxHost.IsInputChar(Char) 方法

定义

确定字符是否是 ActiveX 控件可以识别的输入字符。Determines if a character is an input character that the ActiveX control recognizes.

protected:
 override bool IsInputChar(char charCode);
protected override bool IsInputChar (char charCode);
override this.IsInputChar : char -> bool
Protected Overrides Function IsInputChar (charCode As Char) As Boolean

参数

charCode
Char

要测试的字符。The character to test.

返回

如果字符应直接发送到 ActiveX 控件,且不经过预处理,则为 true;否则为 falsetrue if the character should be sent directly to the ActiveX control and not preprocessed; otherwise, false.

注解

在窗口消息预处理过程中调用方法,以确定给定的输入字符是否应经过预处理或直接发送到ActiveX控件。IsInputCharThe IsInputChar method is called during window message preprocessing to determine whether the given input character should be preprocessed or sent directly to the ActiveX control. 字符的预处理包括检查字符是否为另一个控件的助记键。The preprocessing of a character includes checking whether the character is a mnemonic of another control.

AxHost类中实现时IsInputChar ,方法始终返回true,因此指定字符将直接发送到 ActiveX 控件。As implemented in the AxHost class, the IsInputChar method always returns true, so the specified character is sent directly to the ActiveX control.

安全性

UIPermission
用于继承类的所有窗口以调用此方法。for all windows for inheriting classes to call this method. 关联的枚举:AllWindowsAssociated enumeration: AllWindows

适用于

另请参阅