HotKeyEdit.ApplyHotKey Method
|
|
将与此控件关联的 HotKey 对象应用于特定窗口。
命名空间:
VO
程序集:
VOGUIClasses (在 VOGUIClasses.dll 中) 版本:2.24 GA
Syntax VIRTUAL METHOD ApplyHotKey(
oWindow
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual ApplyHotKey(
Usual oWindow = default
) Request Example
查看代码Parameters
- oWindow (Optional)
- 类型:Usual
要将 HotKey 对象应用于的窗口。
Return Value
类型:
Usual
一个数字值,指示将 HotKey 对象应用于窗口的结果。结果可以是以下值之一:
| 值 | 结果 |
|---|
| -1 | 操作失败,因为 HotKey 对象无效。 |
| 0 | 操作失败,因为窗口无效。 |
| 1 | 操作成功,且没有其他窗口具有相同的 HotKey 对象。 |
| 2 | 操作成功,但另一个窗口已经具有相同的 HotKey 对象。 |
See Also