Вниз
Скачать: 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 вся ветка

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



Память: 0.45 MB
Время: 0.009 c
1-32883
roman-tutov@mail.ru
2002-03-29 16:49
2002.04.11
ComboBox


1-32858
DimaIv
2002-03-29 05:01
2002.04.11
Подскажите плиз. Как программно удалить файл.


1-32819
tall
2002-03-27 14:17
2002.04.11
run-time error


3-32684
Eduard
2002-03-20 11:19
2002.04.11
IBDataset.ParamByName


1-32801
B_A_V
2002-04-01 10:05
2002.04.11
Строка кода больше 255 символов, как быть?




   Наверх