Changing GroupBox Title/Label Position
Can anyone tell ,how to change the GroupBox Title/Label Position .Since resource script(.rc) file has coordinates of groupbox but not of the title/label of groupbox, by deafult it comes on the top left !! I want to set it at certain pixels,how can i do that.
Re: Changing GroupBox Title/Label Position
Use the mfc class wizard to add a control variable to the group box. Then use the control variable's methods to manipulate the group box.
Re: Changing GroupBox Title/Label Position
Quote:
Originally Posted by
Beginner_MFC
Can anyone tell ,how to change the GroupBox Title/Label Position .Since resource script(.rc) file has coordinates of groupbox but not of the title/label of groupbox, by deafult it comes on the top left !! I want to set it at certain pixels,how can i do that.
The simplest way would be use the GroupBox without title and put a static control with the desired title at the desired position above the GroupBox.
Re: Changing GroupBox Title/Label Position
Yeah its simplest but issue is this place title/text above the groupbox and not what i want to achieve. I want to shift the default position of title/label from top left to certain pixels
Re: Changing GroupBox Title/Label Position
Quote:
Originally Posted by
Beginner_MFC
Yeah its simplest but issue is this place title/text above the groupbox and not what i want to achieve. I want to shift the default position of title/label from top left to certain pixels
Then, I guess. You will need some custom control or, at least, custom draw.