Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Programm in Desktop einbinden (https://www.delphipraxis.net/64997-programm-desktop-einbinden.html)

turboPASCAL 16. Apr 2006 16:19

Re: Programm in Desktop einbinden
 
Nun muss ich doch mal fragen, wie bekomme ich das Fenster hinter das Listview,
also zwischen SysListView32 und Wallpaper ("SHELLDLL_DefView") ? :gruebel:

Das währe ja eine tolle Sache...

Delphi-Quellcode:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  protected
    { Protected declarations }
    procedure CreateParams(var Params: TCreateParams); override;
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.CreateParams(var Params: TCreateParams);
var hw: HWND;
begin
  inherited CreateParams(Params);

  hw := FindWindow('SHELLDLL_DefView', nil);

  Params.WndParent := getdesktopwindow;
                            {hw -  funktioniert nicht
                            dann meckert das Programm das
                            es kein Hauptfenster hat}


  Params.Style := {WS_POPUP or} WS_CHILD;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  AlphaBlend := True;
  AlphaBlendValue := 180;
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:05 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz