button1.parent 就是你dll产生的dll的对话框的 handle咯

解决方案 »

  1.   

    有谁能贴一个DEMO CODE出来阿?!!!!谢谢
      

  2.   

    写一个函数把主窗口的Handle传进来就行了!
      

  3.   

    button1.parent 不是THandle 的,是TWinControl的!
    我如果吧主窗口Form1传过来
    button1.parent := Form1 ;
    则报:cannot assign a TFont to a TFont
    的错误!
    请高手指点!!!!!
      

  4.   

    button1.parent不能被赋值!
    把主窗口的Handle传进来后
    这样建立button
    button1 := TButton.Create(Handle);
    就行了!
    给分把!
      

  5.   

    TButton.Create(Tcomponent)不能为THANDLETcomponent(HANDLE)也不行