Вниз
Скачать: CL | DM;

Systen Tray Refresh - как это сделать?   Найти похожие ветки 

 
Smok_er   (2003-03-15 14:12) [0]

Собственно, сабж.
Нужно для того, чтобы после TerinateProcess убрать иконку приложения с трея.


 
Nimbus ©   (2003-03-17 17:44) [1]

Вот так:

const
ISize = 16;
var
x,y,TrW,TrH: Integer;
TbWnd: HWnd;
TrRect: TRect;
begin
TbWnd := FindWindowEx(FindWindowEx(FindWindow("Shell_TrayWnd",nil),0,"TrayNotifyWnd",nil),0,"ToolbarWindow32",nil);
if GetClientRect(TbWnd,TrRect) then
begin
TrW := TrRect.Right - TrRect.Left;
TrH := TrRect.Bottom - TrRect.Top;
x := 1;
while x < TrW do
begin
y := 1;
while y < TrH do
begin
SendMessage(TbWnd,WM_MOUSEMOVE,0,x or (y shl 16));
inc(y,ISize);
end;
inc(x,ISize);
end;
end;
end.


 
Smok_er   (2003-03-18 17:33) [2]

Большое спасибо!
После отправки сообщения только заметил, как много ошибок сделал. Спешил просто очень.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.02 c
9-59520
ProNix
2002-12-09 17:41
2003.05.19
ARCHERS GAME


14-59917
Nikkk
2003-04-29 16:19
2003.05.19
русификатор для D7


1-59769
Tatiana
2003-05-06 17:43
2003.05.19
Gde ob yavlat local varibles ?


14-59889
badaxe2
2003-04-29 13:47
2003.05.19
Кто-нибудь ставил RX Library 2.75 conversion to Delphi 7?


7-59956
Sour
2003-03-22 09:55
2003.05.19
Как убить процесс(ы), зная каким файлом они запускались




   Наверх