
Change background and text color in CButton
This is a multi-part message in MIME format.
--------------D1F2B7EF5A9A76BB7A32E25E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Quote:
> I have a CButton embedded in a CWnd and I want to change the background
> color and text color.
> I have tried trapping WM_CTLCOLOR in the CWnd, but no messages go through.
> Do I have to override CButton to CMyButton::CButton and trap WM_CTLCOLOR
> there?
> --
See the http://www.*-*-*.com/
basically do your own drawing.. See this KB article ID: Q64328 "SAMPLE:
Owner-Draw: 3-D Push Button Made from Bitmaps with Text".
--
Girish Bharadwaj B.V.
Software Developer
http://www.*-*-*.com/ ~GBharadwaj/index.html
--------------D1F2B7EF5A9A76BB7A32E25E
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Girish Bharadwaj
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Girish Bharadwaj
n: Bharadwaj;Girish
org: PictureTel Corp.
title: Software Developer
tel;work: (508) 292 5897
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
end: vcard
--------------D1F2B7EF5A9A76BB7A32E25E--