Einzelnen Beitrag anzeigen

Fridolin Walther

Registriert seit: 11. Mai 2008
Ort: Kühlungsborn
446 Beiträge
 
Delphi 2009 Professional
 
#4

Re: Programm im Hintergrund starten

  Alt 21. Nov 2009, 16:52
Wahrscheinlich hast Du Himitsus Aussage überlesen, aber hier nochmal:

http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
Zitat:
nShowCmd
[in] The flags that specify how an application is to be displayed when it is opened. If lpFile specifies a document file, the flag is simply passed to the associated application. It is up to the application to decide how to handle it.
Auf Klartext bedeutet das, daß der Show Parameter nur eine Empfehlung an die gestartete Anwendung ist, wie Du sie gestartet haben möchtest. Es ist für die Anwendung aber nicht verpflichtend dieser Empfehlung nachzukommen. Wenn Du eine Anwendung dazu zwingen willst seine Fenster so anzuzeigen, wie Du sie möchtest, wirst Du um Hooks nicht herum kommen.
Fridolin Walther
"While Mr. Kim, by virtue of youth and naiveté, has fallen prey to the inexplicable need for human contact, let me step in and assure you that my research will go on uninterrupted, and that social relationships will continue to baffle and repulse me."
  Mit Zitat antworten Zitat