Solved

get z order

Posted on 2001-07-25
5
442 Views
Last Modified: 2013-12-03
how can i get the z order of a window?
0
Comment
Question by:Kitty__Kong
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:stephenruan
Comment Utility
you can refer to the functions.
GetTopWindow(...),GetNextWindow(...) and GetWindow(...).
0
 
LVL 1

Author Comment

by:Kitty__Kong
Comment Utility
i dont think those are what im looking for. i want the opposite of SetWindowPos. i want something that will retrieve HWND_BOTTOM HWND_TOPMOST HWND_TOP or HWND_TOPMOST for a given hwnd
0
 
LVL 20

Expert Comment

by:Madshi
Comment Utility
You can use GetTopWindow as the opposite of HWND_TOP. And you can check whether GetWindowStyle(windowHandle, GWL_STYLEEX) contains the flag WS_EX_TOPMOST to check for HWND_TOPMOST.

Regards, Madshi.
0
 
LVL 1

Author Comment

by:Kitty__Kong
Comment Utility
how do i check for HWND_BOTTOM HWND_TOP and HWND_NOTOPMOST
0
 
LVL 20

Accepted Solution

by:
Madshi earned 25 total points
Comment Utility
HWND_NOTOPMOST -> GetWindowLong(GW_STYLEEX) does NOT contain the flag WS_EX_TOPMOST
HWND_TOPMOST -> GetWindowLong(GW_STYLEEX) DOES contain the flag WS_EX_TOPMOST
HWND_TOP -> GetTopWindow
HWND_BOTTOM -> no idea

Regards, Madshi.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now