Advertisement

08.27.2008 at 03:09AM PDT, ID: 23681365 | Points: 500
[x]
Attachment Details

How to make button's image transparent (in MFC)?

Asked by JeanneZemaitis in Windows MFC Programming

Tags:

Hi

I have a button with image background:
---MyButton
CButton MyButton;
MyButton.Create(NULL,WS_CHILD|WS_VISIBLE|BS_BITMAP,CRect(10,10,50,50),Parent,UINT(uint));      
HBITMAP image = (HBITMAP)LoadImage(NULL,"myBitmap.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
MyButton.SetBitmap(image);
---
But the background image is not transparent.
Can I make it transparent?
Please help me. Thank you very much.Start Free Trial
 
Loading Advertisement...
 
[+][-]08.27.2008 at 03:38AM PDT, ID: 22323128

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.28.2008 at 02:07AM PDT, ID: 22332768

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.29.2008 at 04:25AM PDT, ID: 22344244

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628