
how to shape a button to a 24bit bitmap which delete the transparent region and
Hi,
SetWindowRgn sets the button's hit test region. i.e. When you click out
side of the region, the button doesn't respond to the message. However, to
draw the button without the rectangular background, you may want to handle
the WM_DRAWITEM message. Please check the article below for a sample:
http://www.*-*-*.com/
Best Regards,
Leo Chen
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| Subject: how to shape a button to a 24bit bitmap which delete the
transparent region and
| Date: Thu, 8 Aug 2002 19:57:34 -0700
| Lines: 6
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcI/UIMY7Q/DM/TlRiG+T5Eo/E0c8g==
| Newsgroups: microsoft.public.vc.mfc
| Path: cpmsftngxa07
| Xref: cpmsftngxa07 microsoft.public.vc.mfc:339178
| NNTP-Posting-Host: TKMSFTNGXA06 10.201.232.165
| X-Tomcat-NG: microsoft.public.vc.mfc
|
| i calculate the bitmap's rgn which exclude transparent
| region,then i use SetWindowRgn(hRgn,TRUE),but i can't see
| any change of the button shape.
| how can i do?
|
| thanks !
|