Button overlay on group box?

I have a dialog where I want to overlay a pushbutton across the 3D frame of a group box.  However, sometimes the group box paints across the pushbutton.  Is there any way to change the z-order of child controls in a dialog?
dmetzlerAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
NickRepinConnect With a Mentor Commented:
"Overlapping Controls Are Not Supported by Windows" Q79981
0
 
mandhjoCommented:
Try this:

Set the tab order such that the group box is the very last.  Next, remove the group box from being a tab stop (setting on the properties dialog).  Just a guess.
0
 
dmetzlerAuthor Commented:
Yes - I have tried that.  It did not work.

Don
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
mandhjoCommented:
I supposed you could get a pointer to the group box and call the SetWindowPos function to move it to the bottom of the z-order (see the help for SetWindowPos).
0
 
dmetzlerAuthor Commented:
Tried that too, and tried moving the button to the top of the Z-order.  Also tried changing the clip windows and clip siblings flag of the dialog.  Neither of those worked either.

Don
0
 
mandhjoCommented:
What sequence of events causes the group box to overlay the button?
0
 
mandhjoCommented:
Sounds like you've tried everything...did you try putting the group box first in the tab order?
0
 
dmetzlerAuthor Commented:
Yes - I did that too.  Seems like the group box may be the problem.
0
 
dmetzlerAuthor Commented:
Not the answer I had hoped for, but thanks for pointing me in the right direction.
0
All Courses

From novice to tech pro — start learning today.