Click here to Skip to main content
15,913,486 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalunhandeld exception Pin
lalue22-Mar-00 8:41
lalue22-Mar-00 8:41 
GeneralRe: unhandeld exception Pin
Paul Selormey10-Apr-00 0:58
Paul Selormey10-Apr-00 0:58 
GeneralMultithreading & Doc_View Pin
jas22-Mar-00 6:16
jas22-Mar-00 6:16 
GeneralRE: Multithreading & Doc_View Pin
Anonymous23-Mar-00 16:04
suss Anonymous23-Mar-00 16:04 
GeneralRe: Multithreading & Doc_View Pin
Paul Selormey10-Apr-00 0:31
Paul Selormey10-Apr-00 0:31 
Generalurgent:need help with TRANSPARENT toolbar Pin
tomer dror21-Mar-00 5:19
tomer dror21-Mar-00 5:19 
QuestionHow to load a bitmap from disk? Pin
Newbie20-Mar-00 21:28
Newbie20-Mar-00 21:28 
AnswerRE: How to load a bitmap from disk? Pin
Derek22-Mar-00 14:02
Derek22-Mar-00 14:02 
use this code...

CString fileName = "c:\\pics\\picture.bmp"; // this should be a path to the file to load, can also use CFileDialog to get path
// this wil load the image from disk into an HBITMAP
HBITMAP hBmp = (HBITMAP)::LoadImage(AfxGetInstanceHandle(), fileName, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_CREATEDIBSECTION);
CBitmap cBmp; // create a CBitmap to hold the image
cBmp.Attach(hBmp); // here is the CBItmap that contains the image

==================
The original message was:

How to load a bitmap from the disk (NOT as a resource) to a CBitmap or some other ... to be able to display it or put it in an image control ?
GeneralView handling or hiding. Pin
i_am_aamir20-Mar-00 10:19
i_am_aamir20-Mar-00 10:19 
GeneralRe: View handling or hiding. Pin
Paul Selormey10-Apr-00 1:29
Paul Selormey10-Apr-00 1:29 
Generalprinting a graphic Pin
Anonymous20-Mar-00 3:43
suss Anonymous20-Mar-00 3:43 
GeneralRE: printing a graphic Pin
Derek20-Mar-00 15:50
Derek20-Mar-00 15:50 
GeneralRe: RE: printing a graphic Pin
Mike13-Apr-00 11:35
Mike13-Apr-00 11:35 
Generaladd item under columns in a CListView Pin
Derek19-Mar-00 19:16
Derek19-Mar-00 19:16 
GeneralRE: add item under columns in a CListView Pin
Member 105421-Mar-00 4:50
Member 105421-Mar-00 4:50 
Generaladding items under multi columns in a CListView Pin
Derek19-Mar-00 19:13
Derek19-Mar-00 19:13 
Questionhow to change the colour of text after it been highlight Pin
Anonymous19-Mar-00 14:01
suss Anonymous19-Mar-00 14:01 
Generalpassing events from one prog to another Pin
Anonymous18-Mar-00 21:58
suss Anonymous18-Mar-00 21:58 
QuestionBuilding ActiveX Server Controls Remotely? Pin
perplexed17-Mar-00 14:43
perplexed17-Mar-00 14:43 
QuestionBuilding ActiveX Server Controls Remotely? Pin
perplexed17-Mar-00 14:29
perplexed17-Mar-00 14:29 
QuestionHow add controls to CMDIChildWnd ? /more .../ Pin
PiotrB17-Mar-00 5:25
PiotrB17-Mar-00 5:25 
GeneralWSAENOBUFS error in Windows 2000 Pin
Thales P. Carvalho16-Mar-00 5:29
Thales P. Carvalho16-Mar-00 5:29 
QuestionGIF files/images - where can I get some source code samples? Pin
Member 419516-Mar-00 4:39
Member 419516-Mar-00 4:39 
AnswerRe: GIF files/images - where can I get some source code samples? Pin
Paul Selormey10-Apr-00 1:44
Paul Selormey10-Apr-00 1:44 
GeneralBitmap in a MDI Pin
JohnDodson15-Mar-00 20:49
professionalJohnDodson15-Mar-00 20:49 

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.