Autor Beitrag
SAiBOT
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 323
Erhaltene Danke: 6

XP SP2; 7
D7; D2009
BeitragVerfasst: Do 08.01.09 00:06 
Gibt es da eine Möglichkeit das herauszufinden?
Habe mir bereits "GetWindowInfo" angeschaut, aber soweit ich das richtig verstanden habe bekommt man damit nur heraus ob das Fenster Aktiv ist oder nicht.

MfG

_________________
Debuggers don't remove bugs, they only show them in slow-motion.
Xion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Sa 10.01.09 19:32 
kannst du mal den Teil, wo du die aktiven Fenster findest, zeigen? Hab selbst schonmal sowas gemacht, finde es aber grad nicht.

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
SAiBOT Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 323
Erhaltene Danke: 6

XP SP2; 7
D7; D2009
BeitragVerfasst: Sa 10.01.09 21:14 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
var
  wi: tagWINDOWINFO;

  GetWindowInfo(hMainWindow, wi); // Restore falls minimiert
  if wi.dwOtherStuff <> WS_ACTIVECAPTION then
  begin
    PostMessage(hMainWindow,WM_SYSCOMMAND,SC_RESTORE,0);
  end;

_________________
Debuggers don't remove bugs, they only show them in slow-motion.
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Sa 10.01.09 21:33 
IsIconic auf das TopLevel-Fenster-Handle anweden müsste das richtige sein.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
SAiBOT Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 323
Erhaltene Danke: 6

XP SP2; 7
D7; D2009
BeitragVerfasst: So 11.01.09 00:52 
user profile iconMartok hat folgendes geschrieben Zum zitierten Posting springen:
IsIconic auf das TopLevel-Fenster-Handle anweden müsste das richtige sein.


:flehan: Danke!

_________________
Debuggers don't remove bugs, they only show them in slow-motion.