Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to Render Using CXTPPaintManager
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to Render Using CXTPPaintManager

 Post Reply Post Reply
Author
Message
jmatthias View Drop Down
Newbie
Newbie


Joined: 07 June 2007
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmatthias Quote  Post ReplyReply Direct Link To This Post Topic: How to Render Using CXTPPaintManager
    Posted: 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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.