首页 > 学院 > 开发设计 > 正文

THotKey

2019-11-17 05:22:25
字体:
来源:转载
供稿:网友

  THotKey是一个Windows Common Control热键的包。
类关系:TObject->TPersistent->TComponent->TControl->TWinControl->TCustomHotKey
对象THotKey中实现了在tCustomHotKey类中介绍的一般方法。对象 THotKey公开了许多从TCustomHotKey类中继续来的属性。当没有定义任何其他的新特性时,使用THotKey对旬可以建立一个组合热键。
   方法列表
~THotKey   释放与THotKey对象有关的内存。
~THotKey   创建一个新的THotKey对象
THotKey::~THotKey
__fastcall virtual ~THotKey(void){ }
   释放与THotKey对象有关的内存。
   不要直接调用~THotKey。用delete会自动调用~THotKey。

THotKey::THotKey
__fastcall virtual THotKey(classes::TComponent* AOwner): Comctrls:TCustomHotKey(AOwner){ }
__fastcall THotKey(HWND ParentWindow):Comctrls::TCustomHotKey(ParentWindow){ }
   创建一个新的THotKey对象。
   用new间接调用THotKey。把一个组件作为参数传递为THotKey语法。把一个窗口句柄作为参数传递可把THotKey嵌入非VCL窗口。该语法在控制作为嵌入非VCL窗口的ActiveX控制实现时使用。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表