![]() |
DrawControlEntry signature change |
Post Reply
|
| Author | |
craig
Groupie
Joined: 11 August 2005 Location: United States Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
Topic: DrawControlEntry signature changePosted: 30 August 2008 at 1:01pm |
|
I've recently upgraded and have found that the signature of CXTPPaintManager::DrawControlEntry has changed. My old code no longer compiles complaining about the number of arguments.
My class is a glyph selector derived from class CXTPControl. How would I port the DrawControlEntry call in this snippet to the new one? // Only highlight the up button if the first row or more is hidden. if (! (m_nStartIndex < 8)) { BOOL bPressed = GetPressed() && m_bUpArrowSelected; GetPaintManager()->DrawControlEntry(pDC, rcUpArrow, m_bEnabled, m_bUpArrowSelected, bPressed, FALSE, FALSE, GetParent()->GetPosition()); // Draw the arrow as enabled. arrowColor = pDC->GetTextColor(); } |
|
![]() |
|
craig
Groupie
Joined: 11 August 2005 Location: United States Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 September 2008 at 7:45pm |
|
Anyone? I still have an active tech support contract. I'd be happy to submit a ticket, but this seemed like the type of question that might be useful to have archived on the forum for other developers.
Thanks for the help. ![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 September 2008 at 3:25am |
|
Hi,
Now it renamed to DrawRectangle:
virtual void DrawRectangle(CDC* pDC, CRect rc, BOOL bSelected, BOOL bPressed, BOOL bEnabled, BOOL bChecked, BOOL bPopuped, XTPBarType barType, XTPBarPosition barPosition) = 0;
|
|
|
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 |