Results 1 to 3 of 3

Thread: how to place external window insidy my form

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    how to place external window insidy my form

    Hi all . I wonder how i can load a specific external applications window inside my form. I do not mean the application itself . i mean a window of that application.

  2. #2
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: how to place external window insidy my form

    Code:
    Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
    Usage would be SetParent [hWnd of the window you wish to have inside your program], Me.hWnd

    SetParent's return value, I guess, is the original parent hWnd.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Re: how to place external window insidy my form

    Quote Originally Posted by Merri
    Code:
    Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
    Usage would be SetParent [hWnd of the window you wish to have inside your program], Me.hWnd

    SetParent's return value, I guess, is the original parent hWnd.
    Many thanks for u reply. I got class name and title of the window . could u show me the code that puts the windows inside my form?

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