AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Uhr verstekcken

Ein Thema von Tzuxy · begonnen am 2. Sep 2004 · letzter Beitrag vom 2. Sep 2004
Antwort Antwort
Benutzerbild von Sprint
Sprint

Registriert seit: 18. Aug 2004
Ort: Edewecht
712 Beiträge
 
Delphi 5 Professional
 
#1

Re: Uhr verstekcken

  Alt 2. Sep 2004, 19:15
Zitat von Tzuxy:
Hallo,
weiß jemand wie ich dir Uhr in der taskleiste verstecken und natürlich dann wieder sichtabr machen?
Delphi-Quellcode:
procedure ShowClock(Show: Boolean);
var
  ShellTrayWnd: HWND;
  TrayNotifyWnd: HWND;
  TrayClockWnd: HWND;
begin

  ShellTrayWnd := FindWindow('Shell_TrayWnd', nil);

  if ShellTrayWnd = 0 then
    Exit;

  TrayNotifyWnd := FindWindowEx(ShellTrayWnd, 0, 'TrayNotifyWnd', nil);

  if TrayNotifyWnd = 0 then
    Exit;

  TrayClockWnd := FindWindowEx(TrayNotifyWnd, 0, 'TrayClockWClass', nil);

  if TrayClockWnd = 0 then
    Exit;

  if Show then
    ShowWindow(TrayClockWnd, SW_SHOW)
  else
    ShowWindow(TrayClockWnd, SW_HIDE);

end; {end procedure}
Macht das gleich wie dein Code. Hatte es nur irgendwann mal geschrieben und hatte es noch auf HDD.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:36 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz