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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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
NickRepinCommented:
"Overlapping Controls Are Not Supported by Windows" Q79981
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dmetzlerAuthor Commented:
Not the answer I had hoped for, but thanks for pointing me in the right direction.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.