delphi添加任务栏右键菜单


本文整理自网络,侵删。

 delphi添加任务栏右键菜单
procedure TForm1.FormCreate(Sender: TObject);
var
Mnu:HMenu;
begin
Mnu:=GetSystemMenu(Application.Handle, False);
AppendMenu(Mnu,MF_SEPARATOR,0,nil);
AppendMenu(Mnu,MF_STRING,WM_ABOUT,pchar('关于我们..^^'));
Application.OnMessage:=OnAppMessage;
end;
procedure TForm1.OnAppMessage(var Msg : TMsg ; Var Handled : Boolean);
begin
if Msg.message=WM_SYSCOMMAND then begin
if Msg.wParam=WM_ABOUT then begin
form2.Show;
end;
end;
end;

相关阅读 >>

Delphi中获取打印机设备名和端口名

Delphi 使用int3进行hook处理

Delphi mscomm 比较完整的用法例子

Delphi几个进制相关的代码(hextoint、hextoasc)

Delphi xe取得硬盘序列号代码 复制代码

Delphi编程之系统oem diy

Delphi toscilloscope 仿windows任务管理器cpu使用记录组件

Delphi 判断是否为空('none', 'null', '')

Delphi enumwindows回调函数获取qq2009窗体句柄

Delphi侦测按键输入

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...