[RESOLVED] How to change text align in GroupBox
Hi i have a dialog and i wan't to create few group boxes dynamically (by new operator). But i don't know how to set text align to center. It is in control editor in properties->styles->horisontal align. But how to set center align of group box text in code when i create dynamic group box.
[305 byte] By [
zarraza] at [2007-11-20 11:48:59]

# 1 Re: [RESOLVED] How to change text align in GroupBox
The Group box is just a button with the BS_GROUPBOX style.
To set the text alignment use BS_CENTER/BS_RIGHT/BS_LEFT styles.
# 2 Re: [RESOLVED] How to change text align in GroupBox
Thank you VictorN , i try few styles in create function but that was not working. Now it works :-) maybe i have some errors in BS_ , WS_ or something. To many hours of thinking cause disconnection my body from brain.