THotKey

2016-02-19 17:58 0 1 收藏

有了下面这个THotKey教程,不懂THotKey的也能装懂了,赶紧get起来装逼一下吧!

【 tulaoshi.com - 编程语言 】


  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控制实现时使用。

来源:https://www.tulaoshi.com/n/20160219/1616501.html

延伸阅读

经验教程

310

收藏

90
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部