Einzelnen Beitrag anzeigen

jensw_2000
(Gast)

n/a Beiträge
 
#11

Re: "Frame" aus DLL in Dialog einbetten

  Alt 15. Mai 2006, 20:26
Zitat:
Was geht da beim Frame erzeugen schief?
Ohne Code schwehr zu erraten...
Möglicher Weise fehlt nur
 <MeinFrame>.HandleNeeded;
Mit Frames habe ich das bisher aber auch noch nie gelöst.
Für meine Plugins verwende ich TForm und z.B. folgenden Code ...
Delphi-Quellcode:
function ShowDllForm(aApplication:TApplication; aPanel: TWinControl;aHeight,aWidth:integer):HWND;
begin
   if not Assigned(DllApplication) then
      DllApplication:=Application;

   Application:=aApplication;
   if not Assigned(DllForm) then
      DllForm:=TfrmDllPlugin.Createparented(aPanel.handle);

   with DllForm do
   begin
                  HandleNeeded;
      BorderStyle:=bsnone;
      Height:=aHeight;
      Width:=aWidth;
      top:=0;
      left:=0;
      Show;
   end;

   result:=DllForm.Handle;
end;
Schöne Grüße,
Jens
  Mit Zitat antworten Zitat