Autor Beitrag
Smilebey
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 59

Win XP
D7 Ent
BeitragVerfasst: So 20.11.05 20:51 
Die OnClose Funktion ist für eine Form schon "reserviert", aber es gibt ja keine OnMinimize und OnRestore Funktionen. Ich würde etwas ausführen wenn das Fenster meines Programms minimiert und wiederhergestellt wird. Wie mach' ich das?
JiimmyC
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 35

WinXP SP1

BeitragVerfasst: Mo 21.11.05 20:02 
Unter der Windows Message WM_SIZE sagt man dir wenn dein Fenster Minimiert bzw Maximiert wird.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
CASE uMsg OF
     WM_SIZE:
       IF wParam = SIZE_MINIMIZED then ...
       ELSEIF wParam = SIZE_RESTORED then ...



etc... Hoffe das Hilft.

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.

_________________
Information in this online help system is subject to change without notice.
Smilebey Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 59

Win XP
D7 Ent
BeitragVerfasst: Di 22.11.05 22:16 
Danke. Das hat mir sehr geholfen. Ich dachte das keiner meine SCHLECHT formulierte Frage verstehen könnte, aber naja hat geklappt!
Thx