Solved

get z order

Posted on 2001-07-25
5
444 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
ID: 6320756
you can refer to the functions.
GetTopWindow(...),GetNextWindow(...) and GetWindow(...).
0
 
LVL 1

Author Comment

by:Kitty__Kong
ID: 6320866
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
ID: 6320962
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
ID: 6322234
how do i check for HWND_BOTTOM HWND_TOP and HWND_NOTOPMOST
0
 
LVL 20

Accepted Solution

by:
Madshi earned 25 total points
ID: 6322424
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
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…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

805 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