Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - DrawControlEntry signature change
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DrawControlEntry signature change

 Post Reply Post Reply
Author
Message
craig View Drop Down
Groupie
Groupie


Joined: 11 August 2005
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote craig Quote  Post ReplyReply Direct Link To This Post Topic: DrawControlEntry signature change
    Posted: 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();
}

Back to Top
craig View Drop Down
Groupie
Groupie


Joined: 11 August 2005
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote craig Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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 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
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.031 seconds.