Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change Z order of the application window at run time?

Status
Not open for further replies.

onlyadghosh

Technical User
Joined
Jun 30, 2003
Messages
2
Location
IN
Hi,
I have an event based 2 tier application. Now when my application is running, if I activate a different application( for ex. win explorer), my application becomes active after receiving an event from backend although it was not in focus. But I do not want my application to be at top after receiving an event. It should process the event but should not come up.

Hence for this I want to check whether my application is in focus or not, if it is not in focus then I will decrase the Z order of the application window(opposite to ::BringWindowToTop()) so that it does not appear at
top unless and until I activate it.

Pls help me in this regard, I urgently need the solution.

Thanxs in Advance.
 
Maybe SetWindowPos API can do that for you.

Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top