Print Page | Close Window

DrawControlEntry signature change

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12033
Printed Date: 23 June 2025 at 12:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DrawControlEntry signature change
Posted By: craig
Subject: DrawControlEntry signature change
Date 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();
}




Replies:
Posted By: craig
Date 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. 


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net