Results 1 to 4 of 4

Thread: child windows in dlls

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    5

    Post

    An application has been designed with an mdi form and several child forms. This application uses a dll that has a form that comes up when a menu item is clicked on. How can i make the form that appears from the dll a child form of the main application's form i.e. the form in the dll that's being used by the form in the application?
    Shakeel

  2. #2
    New Member
    Join Date
    Feb 2001
    Location
    The Netherlands
    Posts
    8

    Post Form in DLL

    May it's a better way to rebuild that form into an ActiceX component, if possible.

    That way you can implement this on the child-form of your application. Every new created instance of that child-form will then have also that component.

    Hope this helps a little bit.

    With kind regards,

    Dennis

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    5
    thanks dennis,

    I don't understand what you are saying. The problem is that the activeX component's (i.e. the dll's) form is the form that i want to be a child form of the main application's form. So, when a select a menu item that creates an instance of the component, the component's form should show up as a child form. Does that make thing clearer?

    regards

    Shakeel
    Shakeel

  4. #4
    New Member
    Join Date
    Mar 2001
    Location
    Slovakia
    Posts
    11

    child form

    You can try to use a SetParent function, where the first parameter is handle of child window (form.hwnd) and the second parameter is a handle of parent window.

    But this is good only for child window which is not MDI !

    If you have already solved this problem, please send me the info how. I have a similar problem, but I want to insert a MDI child window and I still do not now how.



    Public Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long

    Martin
    [email protected]
    Martin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width