怎么样将自己的程序最小化到右边的状态栏上面? 用搜索在论坛上找一下,多得很 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var ICONData : TNotifyICONData;...........在oncreate里写with ICONData do begin cbsize := sizeof(icondata); wnd := self.handle; uid := 0; uflags := nif_icon or nif_message or nif_tip; ucallbackmessage:=MI_ICONEVEN; hicon := application.icon.handle; strcopy(szTip,pchar('................')); end; Shell_NotifyICON(Nim_add,@icondata);close时别忘了 Shell_Notifyicon(nim_delete,@icondata);还要处理在图标上的鼠标左右键自定义一个消息procedure WMICONClick(var message: TMessage);message MI_ICONEVEN;procedure TForm1.WMICONClick(var message: TMessage);var p : TPoint;begin GetCursorPos(P); Case Message.LParam of WM_LBUTTONDOWN: begin SetForegroundWindow(Application.Handle); Application.ProcessMessages; //哈哈哈哈哈; 好,好!!! PopupMenu1.Popup(p.x , p.y); end;// WM_LBUTTONDBLCLK: WM_RBUTTONDOWN: begin SetForegroundWindow(Application.Handle); Application.ProcessMessages; PopupMenu2.Popup(p.x,p.y); end; end;end; ReportMachine的报表问题。 执行存储过程时出现了问题,不知如何解决 怎么让程序不能运行98、NT4下,只能运行win2000及以上的版本? 如何实现程序更新?(讨论,有新意者就给分) 挺不住了,帮忙分析一下:) 关于文件的查找(解决就结帖) copy函数的用法是怎么用啊!!哈哈!!是不是很“菜” 屏幕上有文字滚动,如果用label1.left屏幕会闪阿闪的,不行,谁有好办法??? 请问.idx文件是什么作用。 如何制作WebSnap安装程序? 一个读取数据的问题 用DataSet取不出值
ICONData : TNotifyICONData;...........
在oncreate里写
with ICONData do begin
cbsize := sizeof(icondata);
wnd := self.handle;
uid := 0;
uflags := nif_icon or nif_message or nif_tip;
ucallbackmessage:=MI_ICONEVEN;
hicon := application.icon.handle;
strcopy(szTip,pchar('................'));
end;
Shell_NotifyICON(Nim_add,@icondata);
close时别忘了
Shell_Notifyicon(nim_delete,@icondata);
还要处理在图标上的鼠标左右键
自定义一个消息
procedure WMICONClick(var message: TMessage);message MI_ICONEVEN;procedure TForm1.WMICONClick(var message: TMessage);
var p : TPoint;
begin
GetCursorPos(P);
Case Message.LParam of
WM_LBUTTONDOWN:
begin
SetForegroundWindow(Application.Handle);
Application.ProcessMessages; //哈哈哈哈哈; 好,好!!!
PopupMenu1.Popup(p.x , p.y);
end;
// WM_LBUTTONDBLCLK:
WM_RBUTTONDOWN:
begin
SetForegroundWindow(Application.Handle);
Application.ProcessMessages;
PopupMenu2.Popup(p.x,p.y);
end;
end;
end;