![]() |
Re: nonVCL Kapselung
Nachdem man versucht ein zweites Fenster zu erstellen mit CreateWindowEx bekomme ich
Delphi-Quellcode:
Wobei ich dazu sagen muss, dass ich ne Globale Variable habe:
---------------------------
Message --------------------------- Invalid menu handle --------------------------- OK ---------------------------
Delphi-Quellcode:
und:
var
IDs: Integer = -1;
Delphi-Quellcode:
Das heißt jedes Control bekommt ne andere ID weil sie jedesmal um 1 erhöht wird. Und da TNVCLForm = class(TNVCLControl) bekommt auch jede Form ihre einzigartige ID.
constructor TNVCLControl.Create(AParent: TNVCLControl);
begin inherited Create; inc(IDs); FID := IDs; end; Gruß Neutral General |
Re: nonVCL Kapselung
Aber warum übergibst du FID als hMenu? Bei Child-Controls verstehe ich das, das steht da sogar in der MSDN, aber für nicht-Child-Controls sollte das ein Menü-Handle sein und keine ID.
|
Re: nonVCL Kapselung
Haha! Ja die Fenster selbst bekommen gar kein hMenu-Wert.. Bzw. Die bekommen alle 0!
Also das mit den zwei Fenstern klappt schonmal. Aber die WM_COMMAND Messages kommen noch falsch an. Gruß Neutral General |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:48 Uhr. |
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 by Thomas Breitkreuz