Click here to Skip to main content
15,911,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a question about Project workspace Pin
Jake Palmer3-Aug-01 7:09
Jake Palmer3-Aug-01 7:09 
GeneralDialog Background Pin
3-Aug-01 2:26
suss3-Aug-01 2:26 
GeneralRe: Dialog Background Pin
Christian Graus4-Aug-01 2:43
protectorChristian Graus4-Aug-01 2:43 
QuestionDao Database ?? Pin
otvac3-Aug-01 1:59
otvac3-Aug-01 1:59 
AnswerRe: Dao Database ?? Pin
Tim Deveaux3-Aug-01 6:05
Tim Deveaux3-Aug-01 6:05 
AnswerRe: Dao Database ?? Pin
Carlos Antollini3-Aug-01 6:50
Carlos Antollini3-Aug-01 6:50 
GeneralSkins without MFC Pin
3-Aug-01 1:57
suss3-Aug-01 1:57 
GeneralBitmap Question Pin
Nick Armstrong3-Aug-01 1:39
Nick Armstrong3-Aug-01 1:39 
I have a doc/view program (sdi) and I want to be able to load and display bitmaps on the fly from .bmp files. I have an array of cells that the document keeps track of and I want the view to draw the correct bitmap who's filename will be stored in the cell object so that when OnDraw is called it looks up which bitmap it should be displaying and loads and displays it, opposed to having the bitmaps as resources. I have gathered that to load a specific bitmap you use the code...

HBITMAP hImage = (HBITMAP)LoadImage(NULL, "c:\\nick.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE|LR_DEFAULTSIZE);

but I cannot work out how to display it because everything I blit to the screen is blank. I've checked and the bitmap is loading ok, just not displaying.

How do you do this?

Cheers for any help

Nick

Confused | :confused:
GeneralRe: Bitmap Question Pin
jerry0davis3-Aug-01 1:49
jerry0davis3-Aug-01 1:49 
GeneralRe: Bitmap Question Pin
Nick Armstrong3-Aug-01 2:11
Nick Armstrong3-Aug-01 2:11 
GeneralRe: Bitmap Question Pin
Not Active3-Aug-01 6:25
mentorNot Active3-Aug-01 6:25 
GeneralDuplicate Pin
3-Aug-01 1:25
suss3-Aug-01 1:25 
GeneralRe: Duplicate Pin
3-Aug-01 1:55
suss3-Aug-01 1:55 
GeneralRe: Duplicate Pin
3-Aug-01 2:45
suss3-Aug-01 2:45 
GeneralRe: Duplicate Pin
Baafie4-Aug-01 8:57
Baafie4-Aug-01 8:57 
GeneralFirst articles ready ... Pin
.::RockNix::.3-Aug-01 1:17
.::RockNix::.3-Aug-01 1:17 
GeneralRe: First articles ready ... Pin
3-Aug-01 8:10
suss3-Aug-01 8:10 
QuestionCan some clever person help with this?! Pin
2-Aug-01 22:45
suss2-Aug-01 22:45 
AnswerRe: Can some clever person help with this?! Pin
Derek Lakin2-Aug-01 23:12
Derek Lakin2-Aug-01 23:12 
AnswerRe: Can some clever person help with this?! Pin
Bret Faller3-Aug-01 9:50
Bret Faller3-Aug-01 9:50 
GeneralCComboBox Pin
Gérald Mercet2-Aug-01 22:43
Gérald Mercet2-Aug-01 22:43 
GeneralRe: CComboBox Pin
Michael Dunn3-Aug-01 8:34
sitebuilderMichael Dunn3-Aug-01 8:34 
GeneralCDialog Pin
2-Aug-01 22:15
suss2-Aug-01 22:15 
GeneralRe: CDialog Pin
Christian Graus4-Aug-01 2:45
protectorChristian Graus4-Aug-01 2:45 
GeneralSelecting elements on a drawing Pin
2-Aug-01 22:09
suss2-Aug-01 22:09 

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.