Click here to Skip to main content
16,007,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalusing OnLButtonDown Pin
JCY4-Sep-01 18:51
JCY4-Sep-01 18:51 
GeneralRe: using OnLButtonDown Pin
Christian Graus4-Sep-01 18:59
protectorChristian Graus4-Sep-01 18:59 
GeneralUrgent:: Problem in Changing the style of ComboBox Pin
Dhanush4-Sep-01 18:15
professionalDhanush4-Sep-01 18:15 
GeneralRe: Urgent:: Problem in Changing the style of ComboBox Pin
Tomasz Sowinski5-Sep-01 2:51
Tomasz Sowinski5-Sep-01 2:51 
GeneralAbout debug version and release version. Pin
Aaron03144-Sep-01 15:34
Aaron03144-Sep-01 15:34 
GeneralRe: About debug version and release version. Pin
Michael Martin4-Sep-01 15:40
professionalMichael Martin4-Sep-01 15:40 
GeneralCHtmlView OnSize exception Pin
Kristian Nilssen4-Sep-01 12:47
Kristian Nilssen4-Sep-01 12:47 
GeneralDarn Bitmap button! Pin
4-Sep-01 11:18
suss4-Sep-01 11:18 
Hi there, reader of this message! The problem is this piece of code. I'm using MFC and using the resource manager I've drawn a bitmap button in a dialog box and using class wiz I assigned it, the name m_button. I've put this piece of code in OnInitDialog:
CBitmap bitmap;
bitmap.LoadBitmap(IDB_TREE);
hBitMap = (HBITMAP)bitmap;
m_button.SetBitmap(hBitMap);//IDB_TREE is a 16 mil col btmap, but I tried with 256 and still doesn't work. The code compiles but there is no effect. The button is as dull as always, there is no picture upon it nor any text(shouldn't be any text). I'm sure there is a simple answer, so great computer genius, would u be so kind as pointing me to it? Many thanks and happy prog!


To live in truth!
GeneralRe: Darn Bitmap button! Pin
Christian Graus4-Sep-01 12:28
protectorChristian Graus4-Sep-01 12:28 
GeneralRe: Darn Bitmap button! Pin
Michael Dunn4-Sep-01 14:14
sitebuilderMichael Dunn4-Sep-01 14:14 
GeneralRe: Darn Bitmap button! Pin
Paolo Messina5-Sep-01 0:17
professionalPaolo Messina5-Sep-01 0:17 
GeneralConvert Problem Pin
4-Sep-01 9:11
suss4-Sep-01 9:11 
GeneralRe: Convert Problem Pin
Anders Molin4-Sep-01 9:45
professionalAnders Molin4-Sep-01 9:45 
GeneralRe: Convert Problem Pin
Carlos Antollini4-Sep-01 9:49
Carlos Antollini4-Sep-01 9:49 
GeneralRe: Convert Problem Pin
The_Server4-Sep-01 13:32
The_Server4-Sep-01 13:32 
GeneralRe: Convert Problem Pin
4-Sep-01 9:54
suss4-Sep-01 9:54 
GeneralRe: Convert Problem Pin
4-Sep-01 22:33
suss4-Sep-01 22:33 
QuestionHow can I read a .gif file into a BITMAP? Pin
Craig Miller4-Sep-01 8:58
Craig Miller4-Sep-01 8:58 
AnswerRe: How can I read a .gif file into a BITMAP? Pin
Nemanja Trifunovic4-Sep-01 9:37
Nemanja Trifunovic4-Sep-01 9:37 
GeneralRe: How can I read a .gif file into a BITMAP? Pin
Craig Miller4-Sep-01 10:20
Craig Miller4-Sep-01 10:20 
AnswerRe: How can I read a .gif file into a BITMAP? Pin
Chris Losinger4-Sep-01 10:38
professionalChris Losinger4-Sep-01 10:38 
AnswerRe: How can I read a .gif file into a BITMAP? Pin
Not Active4-Sep-01 13:29
mentorNot Active4-Sep-01 13:29 
GeneralSTL String to Number Conversion Pin
4-Sep-01 8:53
suss4-Sep-01 8:53 
GeneralRe: STL String to Number Conversion Pin
4-Sep-01 9:58
suss4-Sep-01 9:58 
GeneralRe: STL String to Number Conversion Pin
Mike Burston4-Sep-01 12:50
Mike Burston4-Sep-01 12:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.