shell_notifyIcon()我也知道,但是我不知道在哪里
解决方案 »
- Integer 这里用的表示什么意思
- 请问从串口获取数据的同时,同时后台需对其数据进行分析处理,用什么方法速度最快,又能保证数据不丢失?
- 执行递归时,如果遇到要找的结果,执行返回 后,如何终止递归,请高手帮帮忙,谢谢!!!!!
- 帮助!!所有的BDE的程序都运行不了?
- SUIPack发布3.0版—您想使您应用程序具有 MacOS 或 WinXP 风格或其它更酷的外观吗?
- sql语句的问题
- 关于winsocket的异常问题!
- 关于treeview的问题(1)加分贴
- delphi 怎样去录制windows系统的窗体画面?
- delphi 如何备份sql server数据库,请高手赐教!
- 如何建一个药品批发的数据库?
- 我是这里的新成员,如果有人给我回贴,我怎样给分给他?
procedure Tf_main.MyIcoMesDo(var Msg:TMessage);
Var Mouse_Point : TPoint; //当前鼠标位置
begin
if (Msg.LParam=WM_LBUTTONDBLCLK) and f_main.Enabled then
f_main.Visible:=not f_main.Visible; //双击图标,显示(隐藏)窗口 if (Msg.LParam=WM_RBUTTONUP) and f_main.Enabled then
begin //右键单击,显示菜单
GetCursorPos(Mouse_Point);
main_pop.Popup(Mouse_Point.x,Mouse_Point.y);
end;
end;
begin
//建立“托盘”图标
New(PNotify);
PNotify^.Wnd:=f_main.Handle;
PNotify^.uID:=0;
PNotify^.uFlags:=NIF_ICON+NIF_MESSAGE+NIF_TIP;
PNotify^.hIcon:=f_main.Icon.Handle;
PNotify^.uCallbackMessage:=MyIcoMes;
PNotify^.szTip:='电子小说';
Shell_NotifyIcon(NIM_ADD,PNotify);
end;
procedure MyIcoMesDo(var Msg : TMessage);Message MyIcoMes;
procedure Tf_main.MyIcoMesDo(var Msg:TMessage);
Var Mouse_Point : TPoint; //当前鼠标位置
begin
if (Msg.LParam=WM_LBUTTONDBLCLK) and f_main.Enabled then
f_main.Visible:=not f_main.Visible; //双击图标,显示(隐藏)窗口 if (Msg.LParam=WM_RBUTTONUP) and f_main.Enabled then
begin //右键单击,显示菜单
GetCursorPos(Mouse_Point);
main_pop.Popup(Mouse_Point.x,Mouse_Point.y);
end;
end;
上面代码:PNotify在什么地方声明,是不是在USES中漏了什么??
求救啦。
PNotify : PNotifyIconDataA;