CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2010
    Posts
    48

    Alternative to TopMost(Keeping a Window on top)

    Basically, I am looking for a method to keep a window on top of an external window. In this case, I wish to keep my form on top of the Firefox window. I have the handle to the Firefox window, though I was wondering how I could do this.

    I want it so that when I maximise another application over Firefox, my form stays behind it. And when Firefox is the primary window, my form is on top of it.

    Any help would be greatly appriciated.

  2. #2
    Join Date
    Mar 2010
    Posts
    48

    Re: Alternative to TopMost(Keeping a Window on top)

    NOTE: I have developed a solution which involves using "WindowToPoint" across the application area at intervals of 5 pixels. It then checks whether the handle is the application/overlay, and if it isn't it returns false.

    This works, and will be refined. Though if anyone has any easier or more optimised/managed methods, I'd like to know.

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