3

I use the SetWindowPos api to make my window topmost with the HWND_TOPMOST param. It works fine, but still tooltips are on top of it.

Example

How to make my window on top of all. Is there an api that I'm missing?

Edit: I fixed it with a timer checking the foreground window and then setting mine to topmost.

blez
  • 4,939
  • 5
  • 50
  • 82
  • 6
    You're simply supposed not to do that from an usability standpoint. Tooltips are, for the short time they are displayed, the most important thing the user wants to see, it's not acceptable that they are hidden by your window. – Matteo Italia Feb 27 '11 at 14:02

1 Answers1

13

There is no way to do that, as noted in the Old New Thing blog. TopMost is TopMost. If two windows are competing one must loose. There is no secret MoreTopMost constant.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Alois Kraus
  • 13,229
  • 1
  • 38
  • 64