3 Replies - 530 Views - Last Post: 10 October 2021 - 11:14 AM Rate Topic: -----

#1 Derek911   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 26-August 20

Creating a popup window above an another.

Posted 04 October 2021 - 08:22 AM

I have a `handle` to third party window (not created by me, retrieved using the `FindWindow` function). Now I'd kile to create a small popup style window that will ALWAYS be laid down ovev/on top of that third party window. The case is I don't wanna the popup to be always above all the system windows, but ONLY above the window that I've described so I don't wanna use the `HWND_TOPMOST` option in the `SetWindowPos` function.

How can i achieve it without using the `HWND_TOPMOST` flag?

Is This A Good Question/Topic? 0
  • +

Replies To: Creating a popup window above an another.

#2 Salem_c   User is offline

  • void main'ers are DOOMED
  • member icon

Reputation: 2552
  • View blog
  • Posts: 4,736
  • Joined: 30-May 10

Re: Creating a popup window above an another.

Posted 04 October 2021 - 08:54 AM

Also here -> https://www.cplusplu...windows/280300/
Was This Post Helpful? 1
  • +
  • -

#3 Skydiver   User is offline

  • Code herder
  • member icon

Reputation: 7898
  • View blog
  • Posts: 26,375
  • Joined: 05-May 12

Re: Creating a popup window above an another.

Posted 04 October 2021 - 09:34 AM

HWND_TOP will put your window at the top of the Z order for that application.
Was This Post Helpful? 0
  • +
  • -

#4 Sheepings   User is offline

  • D.I.C Lover
  • member icon

Reputation: 256
  • View blog
  • Posts: 1,372
  • Joined: 05-December 13

Re: Creating a popup window above an another.

Posted 10 October 2021 - 11:14 AM

Yep, you are looking for the HWND_TOP.

Assuming by your post, you were already using its ugly sidekick counterpart. This explains what you want : https://devblogs.mic...121-10/?p=33263 and also explains the difference between the two API's. HWND_TOPMOST is horrible. That would dump the window on top of the Z-position (outside) the window stack. Whereas HWND_TOP places it (into) the Z-order overlapping those under it, but not sitting on top of it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1