![]() |
drawing on CXTButton surface |
Post Reply
|
| Author | |
winxp
Newbie
Joined: 28 October 2003 Location: Israel Status: Offline Points: 18 |
Post Options
Thanks(0)
Quote Reply
Topic: drawing on CXTButton surfacePosted: 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 |
|
![]() |
|
Jeff1
Newbie
Joined: 19 August 2005 Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
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) |
|
![]() |
|
andre
Groupie
Joined: 09 March 2005 Status: Offline Points: 27 |
Post Options
Thanks(0)
Quote Reply
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... |
|
![]() |
|
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 |