Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6576745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:33:03+00:00 2026-05-25T15:33:03+00:00

I have a window which i would like to display above everything else. My

  • 0

I have a window which i would like to display above everything else. My code is able to successfully force it to be above almost every window, except for other top-most windows. Here is the code I use:

SetWindowPos(getSDLWindow(),HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE);

This line is executed every time I click the middle mouse button (I am using a mouse hook to fire it).

Once I start up my program, and middle-click once, from that point on, my window remains above all “regular” windows.

However, all “special windows” seem to be in the same category as my application window, i.e. special windows when focused are displayed above my application window. In this category of special windows are the taskbar (which using the start menu also seems to activate), right-click menus (even when spawned by regular windows), the Task Manager, and I am sure many others. In fact I am fairly sure any other window which is “topmost” will behave this way. It seems that through my SetWindowPos call I have elevated the status of my application window to a topmost window.

What’s neat is that I can start the Task Manager, move it over my app window (so that it is now covering it) and then middle-click inside the Task Manager, and now my app window pops back up in front (while focus remains on the Task Manager). This is nice but I’d like to take it one step further so that my window will be on top no matter what.

Are there any methods to accomplish this other than repeatedly firing SetWindowPos in a loop? I’d like to avoid that if at all possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:33:03+00:00Added an answer on May 25, 2026 at 3:33 pm

    No, because There is no “super topmost” flag.

    Nor should you because all the super-top-most windows will fight each other for control.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a window which is hidden and I would like to send a
I am looking to make a custom window which would look something like this
I have an audio player using NAudio and I would like to display a
I have a window which has a custom NSView and has a bottom bar
In my application I have a window which I popup with small messages on
I have a WPF Window which has a among other controls hosts a Frame.
I have a window application which uses SP classes to create a site. I
I'm trying to hide window after its startup. I have own window-class which is
I have a window in WPF which shows some media contents. This content contains
I have a main window (#1) on my webpage from which I open a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.