![]() |
CXTCaption |
Post Reply ![]() |
Author | |
fist88226 ![]() Newbie ![]() ![]() Joined: 05 March 2008 Location: Malaysia Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() Posted: 25 March 2008 at 5:14am |
Hi,
I have one problem creating label using CXTCaption CXTCaption m_label; m_label.Create(this, _T("Label"), 0, WS_CHILD | WS_VISIBLE | SS_CENTER, CRect(0, 80, 240, 96), IDC_STATIC_VIEW_MANAGER); But I can't make this caption "Center Aligned". ![]() ![]() ![]() Regard |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Sorry, SS_CENTER style is not supported.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jimmy ![]() Senior Member ![]() Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
![]() ![]() ![]() ![]() ![]() |
Does CXTCaption support markup ?
Jimmy |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
There is new CXTPMessageBar with markup. See Ribbon sample.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
fist88226 ![]() Newbie ![]() ![]() Joined: 05 March 2008 Location: Malaysia Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
Hi.
So is there any other way to make the caption "Center Aligned"? |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You can override CRect CXTCaption::GetTextRect() const method and return rectangle you need.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
fist88226 ![]() Newbie ![]() ![]() Joined: 05 March 2008 Location: Malaysia Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
Hi, oleg.
It doesn't work to override GetTextRect(). Could you send me the whole class to inherit the CXTCaption? Thanx. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |