Print Page | Close Window

SetToolTipContext needed!

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=6244
Printed Date: 14 May 2024 at 1:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetToolTipContext needed!
Posted By: znakeeye
Subject: SetToolTipContext needed!
Date Posted: 27 January 2007 at 11:52am
Hi, 
 
I have derived a class from CXTPToolTipContext. To use it in a report control (or any other Codejock control) an ugly hack is needed.
 
There is no SetToolTipContext function (like SetPaintManager) so in order to use my custom tooltip control I have to do this:
 
CMyReportControl::CGameReportControl()
{
    CMDTARGET_RELEASE(m_pToolTipContext);
    m_pToolTipContext = new CMyToolTipContext();
}
Have I missed something or is this a design flaw?



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