how to shape a button to a 24bit bitmap which delete the transparent region and 
Author Message
 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 !
|



Fri, 28 Jan 2005 03:48:16 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Creating a region from the shape of a bitmap

2. How to a transparent bitmap's Region

3. 16bit bitmap -> 24bit bitmap

4. 16bit bitmap -> 24bit bitmap

5. transparent bitmap on toolbar button

6. How to implement TRANSPARENT Bitmap Buttons

7. How to display Transparent Bitmap Button?

8. Transparent Bitmap Buttons

9. Transparent Bitmap buttons

10. Transparent Button Bitmap

11. How to implement TRANSPARENT Bitmap Buttons

12. Transparent Owner Drawn Bitmap Button

 

 
Powered by phpBB® Forum Software