F frostytop Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-23 #1 大富翁的朋友: 我在用delphi将窗体做成dll时,在调用的时候窗体是的按纽事件或CREAT事件不可用,望大富翁的朋友给于指教;
F frostytop Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-23 #2 大富翁的朋友: 我在用delphi将窗体做成dll时,在调用的时候窗体是的按纽事件或CREAT事件不可用,望大富翁的朋友给于指教;
X xianguo Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-23 #3 在dll中封装Form需要传入主程序的Handle(Application.handle)
X xianguo Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-23 #4 Application.Handle := 传入参数handle; Form := TDemoForm.Create(Application); with Form do begin ShowModal; Free; end;
Application.Handle := 传入参数handle; Form := TDemoForm.Create(Application); with Form do begin ShowModal; Free; end;
J jennykiller Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-23 #5 楼上正确,但是在Dll窗体关闭时记得加一条,Application.Handle := 0;否则会有问题。