Einzelnen Beitrag anzeigen

Alaitoc

Registriert seit: 24. Okt 2008
263 Beiträge
 
Delphi 7 Enterprise
 
#2

Re: Formstyle, Neuerstellen des Fensters verhindern

  Alt 12. Jan 2010, 12:47
So ich schaffe es nun mit Hilfe von:

Delphi-Quellcode:
         
SetWindowLong( Handle, GWL_HWNDPARENT, GetDesktopWindow );
SetWindowLong( Handle, GWL_STYLE, ( GetWindowLong( Handle, GWL_STYLE ) and not WS_CHILD and not WS_CLIPCHILDREN ) );
das Fenster aus dem MDI-Form zu kriegen...jedoch will es nicht wieder hinein mit:
Delphi-Quellcode:
SetWindowLong( Handle, GWL_HWNDPARENT, Application.MainForm.Handle );
SetWindowLong( Self.Handle, GWL_STYLE, ( GetWindowLong( Self.Handle, GWL_STYLE ) or WS_CHILD or WS_CLIPCHILDREN ) );
Hat jemand eine Idee?

MfG Alaitoc
  Mit Zitat antworten Zitat