![]() |
How to Render Using CXTPPaintManager |
Post Reply
|
| Author | |
jmatthias
Newbie
Joined: 07 June 2007 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: How to Render Using CXTPPaintManagerPosted: 07 June 2007 at 1:58pm |
|
I am creating a new control from scratch (similar to the Outlook pager). I would like to use the CXTPPaintManager to render certain parts of my control but I can't find any examples for how to go about doing this.
What is the correct way to get an instance of CXTPPaintManager? I am currently using:
m_pPaintManager = CXTPPaintManager::CreateTheme(xtpThemeOffice2003);
Is this correct?
When I use the paint manager like this:
void CFooBar::OnPaint()
{
CPaintDC dc(this); // device context for painting
m_pPaintManager->DrawRectangle(&dc, rectCaption, FALSE,FALSE,TRUE, FALSE, FALSE, xtpBarTypeNormal, xtpBarLeft);
}
I don't get a rectangle drawn.
Can anybody help?
Joel
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 June 2007 at 1:13am |
|
Hello,
Yes, you have right code.
In Offfice2003 theme not Selected/pressed state draws nothing. try to set bSelected parameter to TRUE.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |