dmetzler
asked on
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?
ASKER
Yes - I have tried that. It did not work.
Don
Don
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).
ASKER
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
Don
What sequence of events causes the group box to overlay the button?
Sounds like you've tried everything...did you try putting the group box first in the tab order?
ASKER
Yes - I did that too. Seems like the group box may be the problem.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Not the answer I had hoped for, but thanks for pointing me in the right direction.
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.