[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

Window Order

 I have an application that can have multiple top level windows (owned by the desktop).  I am trying to control the order of these windows by using CWnd::SetOwner().  The problem is when I call SetOwner the owner is not getting changed.  I am verifying this by using spy.  

  Any ideas why this call would be failing?

Thanks
 
0
mcorcora
Asked:
mcorcora
1 Solution
 
Tommy HuiEngineerCommented:
If you want to change the order, you need to use SetWindowPos(). One of the parameters indicate what window to put this window after in terms of Z-order.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now