Autor Beitrag
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Mo 24.06.02 12:31 
Wie bekomme ich heraus, ob ein in den TNA gezeichnetes Icon sichbar ist?

Normalerweise schreibe ich das Icon nur einmal rein und aktualisiere es ggf. später einmal. Wenn nun aber z.B: der Explorer abstürzt oder das Programm als Service läuft (TNA noch nicht geladen) ist und bleibt das Icon verschwunden obwohl man es nach wie vor aktualisieren kann.
Wie bekomme ich nun heraus, ob das Icon sichtbar ist, damit ich es ggf. neu einfügen kann?
FriFra Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Mo 24.06.02 14:25 
Titel: Ich habe in der Zwischenzeit eine Lösung gefunden
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
var
fwm_TaskbarRestart:cardinal;


procedure Form1.FormCreate(Sender: TObject);
begin
fwm_TaskbarRestart:=RegisterWindowMessage('TaskbarCreated');
end;

procedure Form1.WndProc(var Msg: TMessage);
begin
if (fwm_TaskbarRestart<>0and (Msg.Msg=fwm_TaskbarRestart) then ShellNotifyIcon(Nim_Add, @IconData);
inherited;
end;


Code-Tags hinzugefügt. Tino

Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.