Solved

get z order

Posted on 2001-07-25
5
446 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

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