CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    1

    Moving window of another application

    I've been looking for a way to move another window (not in my app) along
    with the window of my app. I would like that other window to be attached
    to the right or bottom side of my app, even if my app is dragged.

    Getting a HWND for the other app and executing MoveWindow just doesn't do it.

    Ideas anyone?




  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Moving window of another application

    A few questions:

    - Are you sure that the HWND is for the app?
    - When are you calling MoveWindow?
    - Are you also considering if the size of your app window changes?
    - Is the other app written by yourself or a third-party? If it's written by a third-party, the user of your app can easily set focus to the other app and move the window, destroying the effect that you wanted in the first place.

    Regards,

    Paul McKenzie


  3. #3
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    Re: Moving window of another application

    Hi;
    if you are sure the hWnd of other App window you get it right..then i suggest you can use
    SetWindowPos win32 API, i always use this and work perfectly..
    HTH

    Hello World!!!

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

Featured