当前位置:首页 >> 编程开发 >> Visual C++ >> 内容

THotKey

时间:2008/4/4 作者:平凡之路 来源:xuhantao.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控制实现时使用。

  • 上一篇:TCollection
  • 下一篇:TCanvas
  • 相关文章
    • 没有相关文章
    共有评论 0相关评论
    发表我的评论
    • 大名:
    • 内容:
  • 徐汉涛(www.xuhantao.com) © 2024 版权所有 All Rights Reserved.
  • 部分内容来自网络,如有侵权请联系站长尽快处理 站长QQ:965898558(广告及站内业务受理) 网站备案号:蒙ICP备15000590号-1