组件制作之五(托盘组件)[11]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 linzhengqun 的 blog

     property oniconmouseup: tmouseevent read foniconmouseup write foniconmouseup;

  end;

 

procedure register;

 

implementation

 

procedure register;

begin

  registercomponents('wind', [tmytray]);

end;

 

///////////tmytray////////////////////////////

constructor tmytray.create(aowner:tcomponent);

begin

  inherited create(aowner);

  //设置程序钩子,指定appmsghook为处理函数,

  //,应用程序的任何消息都将经过这个函数

   application.hookmainwindow(appmsghook);

   ficon:=ticon.create;

   //得到默认图标的句柄,图标为应用程序的图标

   fdficon:=application.icon.handle;

   fsetdficon:=true;

   factive:=false;

   frmode:=ldbclick;

本文关键:组件制作之五(托盘组件)
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top