![]() |
CXTCaption |
Post Reply
|
| Author | |
fist88226
Newbie
Joined: 05 March 2008 Location: Malaysia Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTCaptionPosted: 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 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2008 at 6:51am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2008 at 9:58am |
|
Does CXTCaption support markup ?
Jimmy |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2008 at 10:17am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2008 at 10:23am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 March 2008 at 1:02am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 March 2008 at 7:13am |
|
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 |