我用DELPHI做了DLL檔案,是別的應用程式的一個插件,可以通過別的應該程式彈出表單,但表單的圖示一直顯示不正確,請教各位大俠,怎么才能在DLL表單中的按鈕上顯示自己的圖示?
uj5u.com熱心網友回復:
你可以編譯一個EXE檔案,標有圖示。再改成Dll。uj5u.com熱心網友回復:
function CreateWin(nleft: Integer; nTop: Integer; nWidth: Integer; nHigh: Integer; aParent: THandle): Integer; stdcall;begin
Result := 0;
if gDrawWin <> nil then
FreeAndNil(gDrawWin);
Application.Handle := aParent;
gDrawWin := TFrmDraw.Create(Application);
gDrawWin.BorderStyle := bsNone;
gDrawWin.Left := nleft;
gDrawWin.Top := nTop;
gDrawWin.Width := nWidth;
gDrawWin.Height := nHigh;
gDrawWin.Show();
end;
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/88760.html
標籤:VCL組件開發及應用
