Tezmo

hey, i have a problem. i have a dialog with a text control, and i want to draw goup box around. but goupbox allways goes on top, and i cant see text control then. i cant find any bring to front or smth like that, can any 1 help me

visual c++




Re: Visual C++ General Dialog problem with text control

Pintu Shukla

you can use BringWindowToTop() or SetWindowPos() function to bring your Window to front.






Re: Visual C++ General Dialog problem with text control

Bite Qiu - MSFT

Tezmo wrote:

hey, i have a problem. i have a dialog with a text control, and i want to draw goup box around. but goupbox allways goes on top, and i cant see text control then. i cant find any bring to front or smth like that, can any 1 help me

Delete text control and group box, drag them into dialog again and make sure you have this order: group box -> text control, now text control will be on top of group box defaultly. If you want to change their z-order in runtime, use functions that Pintu mentioned.