AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

nonVCL Kapselung

Ein Thema von Neutral General · begonnen am 14. Okt 2007 · letzter Beitrag vom 14. Okt 2007
Antwort Antwort
Seite 2 von 2     12   
Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#11

Re: nonVCL Kapselung

  Alt 14. Okt 2007, 14:39
Nachdem man versucht ein zweites Fenster zu erstellen mit CreateWindowEx bekomme ich

Delphi-Quellcode:
---------------------------
Message
---------------------------
Invalid menu handle
---------------------------
OK
---------------------------
Wobei ich dazu sagen muss, dass ich ne Globale Variable habe:

Delphi-Quellcode:
var
  IDs: Integer = -1;
und:

Delphi-Quellcode:
constructor TNVCLControl.Create(AParent: TNVCLControl);
begin
  inherited Create;
  inc(IDs);
  FID := IDs;
end;
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.

Gruß
Neutral General
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat
Apollonius

Registriert seit: 16. Apr 2007
2.325 Beiträge
 
Turbo Delphi für Win32
 
#12

Re: nonVCL Kapselung

  Alt 14. Okt 2007, 14:43
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.
Wer erweist der Welt einen Dienst und findet ein gutes Synonym für "Pointer"?
"An interface pointer is a pointer to a pointer. This pointer points to an array of pointers, each of which points to an interface function."
  Mit Zitat antworten Zitat
Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#13

Re: nonVCL Kapselung

  Alt 14. Okt 2007, 14:54
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
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:24 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz