Einzelnen Beitrag anzeigen

Hedge

Registriert seit: 30. Jun 2007
278 Beiträge
 
Delphi 2009 Professional
 
#5

Re: RegisterHotKey funktioniert nicht unter Vista!

  Alt 25. Mär 2009, 05:15
Mein Tool nutzen im besten Fall 5 Leute (mich inklusive), deswegen war mir das ziemlich egal.

direkt bei FormCreate wird es folgendermaßen versteckt:

Delphi-Quellcode:
ShowWindow(Application.Handle, SW_HIDE);
SetWindowLong(Application.Handle, GWL_EXSTYLE,
GetWindowLong(Application.Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW );
ShowWindow(Application.Handle, SW_SHOW);
angezeigt wird es dann mit:

Delphi-Quellcode:
SetWindowPos(Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE or SWP_NOMOVE or SWP_NOACTIVATE);
SetWindowPos(Handle, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE or SWP_NOMOVE or SWP_NOACTIVATE);
ShowWindow(Handle, SW_SHOWNOACTIVATE);
٩๏̯͡๏)۶
  Mit Zitat antworten Zitat