Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys, It's me again...

I tried to set a bitmap into an element in MFC, but that didn't work.

First I created a Dialog and added an element, than I also added a variable (Category: Control). I used "variable".SetBitmap(..)[^]...

Why isn't it working?


Greetings
Epanjohura
Posted
Comments
epanjohura 3-Dec-12 2:36am    
I really need your help guys :S
epanjohura 11-Dec-12 4:51am    
???? help me please
Resmi Anna 11-Dec-12 5:05am    
what element did u add in the dialog?I mean what type of control u added to the dialog box?
epanjohura 11-Dec-12 5:08am    
it's a checkbox

In the resource editor of your dialog, you have to put the property "Bitmap" of your checkbox to "true".

After that, calling the "SetBitmap" method will allow to replace the text of your checkbox with the bitmap.

Or by code, you will have to modify the style of the checkbox to include the BS_BITMAP.
C++
variable.ModifyStyle(0,BS_BITMAP);
 
Share this answer
 
Comments
epanjohura 11-Dec-12 7:44am    
ooh thank you so much
I really need your help guys.. ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900