Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.04.11;
Скачать: CL | DM;

Вниз

Убрать SysTray   Найти похожие ветки 

 
Hammer   (2002-03-28 16:47) [0]

Кто-нибудь знает как скрыть(просто убрать) System Tray?
*** Такое св-во применяется в проге *Быстрые кнопки* ***
Подскажите, пожалуйста, скорее.........................


 
AlexRaza ©   (2002-03-28 21:47) [1]

Можно так...
var
hTaskBar : THandle;
...
hTaskbar := FindWindow("Shell_TrayWnd", Nil);
ShowWindow(hTaskBar, SW_HIDE);
...


 
copyr25 ©   (2002-03-28 22:23) [2]

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.DFM}

procedure hideStartbutton(visi:boolean);
Var
Tray, Child : hWnd;
C : Array[0..127] of Char;
S : String;

Begin
Tray := FindWindow("Shell_TrayWnd", NIL);
Child := GetWindow(Tray, GW_CHILD);
While Child <> 0
do Begin
If GetClassName(Child, C, SizeOf(C)) > 0
Then Begin
S := StrPAS(C);
If UpperCase(S) = "TRAYNOTIFYWND" then begin
If Visi then ShowWindow(Child, 1)
else ShowWindow(Child, 0);
end;
End;
Child := GetWindow(Child, GW_HWNDNEXT);
End;
End;

procedure TForm1.Button1Click(Sender: TObject);
begin
hideStartbutton(false);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
hideStartbutton(true);
end;

end.


 
copyr25 ©   (2002-03-28 22:25) [3]

На название процедур внимание не обращайте:))



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

Текущий архив: 2002.04.11;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.01 c
1-32832
mike.dld
2002-03-28 17:45
2002.04.11
Это опять Я!


4-33002
Demn
2002-02-07 12:16
2002.04.11
Process ID


6-32931
bg8
2002-01-23 18:38
2002.04.11
TCustomWinSocket


1-32782
Biorobot
2002-03-31 15:59
2002.04.11
Ещё разок спрошу!


1-32853
atmospheric
2002-03-28 17:37
2002.04.11
удаление Item из ListView ?