Using CCustomDraw and CButton

"nicmail777" <nicmail777-/[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
Hi,

I would like to handle NM_CUSTOMDRAW for a button.
According to MSDN, this notification is support for buttons

(see:
http://msdn.microsoft.com/en-us/library/bb761847%28VS.85%29.aspx
<http://msdn.microsoft.com/en-us/library/bb761847%28VS.85%29.aspx>
and also sample from MS:
 
<http://download.microsoft.com/download/6/8/3/683DB9FE-8D61-4A3C-B7B8-31\
69FF70AE9F> 
<http://download.microsoft.com/download/6/8/3/683DB9FE-8D61-4A3C-B7B8-31\
69FF70AE9F> 
<http://download.microsoft.com/download/6/8/3/683DB9FE-8D61-4A3C-B7B8-31\
69FF70AE9F/CustomDrawButtonDlg.exe>
http://download.microsoft.com/download/6/8/3/683DB9FE-8D61-4A3C-B7B8-316\
9FF70AE9F
<http://download.microsoft.com/download/6/8/3/683DB9FE-8D61-4A3C-B7B8-31\
69FF70AE9F> /CustomDrawButtonDlg.exe   )

but I cannot make it work with WTL.

I've downloaded WTL sample from codeproject:
"Custom Drawn Controls using WTL"
(http://www.codeproject.com/KB/wtl/customdrawlist_wtl.aspx
<http://www.codeproject.com/KB/wtl/customdrawlist_wtl.aspx>  )

and it works fine with CListViewCtrl.
If I change CListViewCtrl to CButton,
WM_NOTIFY and NM_CUSTOMDRAW stop arriving...

I've tried with WTL 7.5 and WTL 8.0

Is it possible to do at all ?
Any help is much appreciated.
Regards,
Si




[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.