Solved

get z order

Posted on 2001-07-25
5
447 Views
Last Modified: 2013-12-03
how can i get the z order of a window?
0
Comment
Question by:Kitty__Kong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dir function fails on mapped drives 28 154
VS2015 compilation and missing DLLs 9 193
String manipulation in Visual Basic 7 90
Please explain the parts of these 2 LINQ expressions 3 102
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

752 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