L
lotomer
Unregistered / Unconfirmed
GUEST, unregistred user!
我想把他放在DLL中,但是不知道怎么传递参数
Procedure ShowInTray(ahandle,aicon:thandle;atopicchar);
var
MyTray:NOTIFYICONDATA;
begin
MyTray.cbSize:=sizeof(Mytray);
MyTray.Wnd:=ahandle;
MyTray.szTip:=atopic;//就是这里不能通过
MyTray.uFlags:=NIF_ICON+NIF_MESSAGE+NIF_TIP;
MYTray.uCallbackMessage:=WM_USER;
MYTray.hIcon:=aicon;
Shell_Notifyicon(NIM_ADD,@MYTray);
end;
Procedure ShowInTray(ahandle,aicon:thandle;atopicchar);
var
MyTray:NOTIFYICONDATA;
begin
MyTray.cbSize:=sizeof(Mytray);
MyTray.Wnd:=ahandle;
MyTray.szTip:=atopic;//就是这里不能通过
MyTray.uFlags:=NIF_ICON+NIF_MESSAGE+NIF_TIP;
MYTray.uCallbackMessage:=WM_USER;
MYTray.hIcon:=aicon;
Shell_Notifyicon(NIM_ADD,@MYTray);
end;