c# - How to get the z-order in windows? -


I'm making an application where I talk to every running app Now, I get the z-order window One way to do this, for example, if Firefox and Notepad are running, I have to know which front is there.

Any thoughts? Apart from doing this for the main window of each application, I also have to do this for my children and sister windows (windows related to the same process).

You can use the GetTopWindow function to find all the hair windows of the parent window and a handle The hair can return to the window which is the highest in z-order. The GetNextWindow function receives a handle in z-order in the next or previous window.

GetTopWindow:
GetNextWindow:


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -