Print Page | Close Window

drawing on CXTButton surface

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=2930
Printed Date: 09 November 2025 at 12:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: drawing on CXTButton surface
Posted By: winxp
Subject: drawing on CXTButton surface
Date Posted: 22 September 2005 at 3:57am
hi,

i have a CXTButtonEX deriving from CXTButton.
which virtual function do i need to override in order to draw on the surface of the button ?

Please help.
Regards



Replies:
Posted By: Jeff1
Date Posted: 22 September 2005 at 9:24am
Haven't tried it, but I think it would be one of these:

void CXTPDefaultTheme::DrawImage(CDC* pDC, CPoint pt, CSize sz, CXTPImageManagerIcon* pImage, BOOL bSelected, BOOL bPressed, BOOL bEnabled, BOOL bChecked, BOOL bPopuped, BOOL  )

void CXTPOfficeTheme::DrawImage(CDC* pDC, CPoint pt, CSize sz, CXTPImageManagerIcon* pImage, BOOL bSelected, BOOL bPressed, BOOL bEnabled, BOOL bChecked, BOOL bPopuped, BOOL)



Posted By: andre
Date Posted: 22 September 2005 at 10:04am

 

 One way is to implement your own button theme( derive from the theme you want ),  and then simple override one of the functions that fills the button...




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