Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - drawing on CXTButton surface
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

drawing on CXTButton surface

 Post Reply Post Reply
Author
Message
winxp View Drop Down
Newbie
Newbie
Avatar

Joined: 28 October 2003
Location: Israel
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote winxp Quote  Post ReplyReply Direct Link To This Post Topic: drawing on CXTButton surface
    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
Back to Top
Jeff1 View Drop Down
Newbie
Newbie


Joined: 19 August 2005
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jeff1 Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
andre View Drop Down
Groupie
Groupie


Joined: 09 March 2005
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote andre Quote  Post ReplyReply Direct Link To This Post 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...

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