Click here to Skip to main content
16,012,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: 3D World Pin
Cedric Moonen1-Sep-08 7:50
Cedric Moonen1-Sep-08 7:50 
GeneralRe: 3D World Pin
MrMcIntyre1-Sep-08 8:07
MrMcIntyre1-Sep-08 8:07 
GeneralRe: 3D World Pin
Cedric Moonen1-Sep-08 8:14
Cedric Moonen1-Sep-08 8:14 
GeneralRe: 3D World Pin
MrMcIntyre1-Sep-08 9:06
MrMcIntyre1-Sep-08 9:06 
GeneralRe: 3D World Pin
El Corazon1-Sep-08 15:12
El Corazon1-Sep-08 15:12 
GeneralRe: 3D World Pin
MrMcIntyre1-Sep-08 9:26
MrMcIntyre1-Sep-08 9:26 
GeneralRe: 3D World Pin
MrMcIntyre3-Sep-08 6:38
MrMcIntyre3-Sep-08 6:38 
QuestionHBITMAP to picture control Pin
cherrymotion1-Sep-08 6:42
cherrymotion1-Sep-08 6:42 
Hi guys,

I have a dialog box on mfc and put a picture control onto it.
Now it is no problem to load images from a path of my harddisk, they are shown well.
But i dont know, how to load BITMAPS dynamically into the control.

First I create a new Bitmap with the CreateBitmap() function from a Byte-Array.
The function returns a non-zero value, so it was successfull.
But now i have somehow to copy that bitmap into a memory-hdc, and from there
i should be able to load it into the control. but i dont get it!!!
I added a variable to the control from the type CStatic.
But why is it so complicated, to get that created HBITMAP onto the Control?
I mean, there IS a CStatic-function, which lets me SetBitmap(HBITMAP hBitmap)...
But it does not work!!!
I hope someone can help me...
Best regards,
cherry D'Oh! | :doh:
AnswerRe: HBITMAP to picture control Pin
Ștefan-Mihai MOGA1-Sep-08 8:06
professionalȘtefan-Mihai MOGA1-Sep-08 8:06 
AnswerRe: HBITMAP to picture control Pin
Mark Salsbery1-Sep-08 11:34
Mark Salsbery1-Sep-08 11:34 
GeneralRe: HBITMAP to picture control Pin
cherrymotion1-Sep-08 19:59
cherrymotion1-Sep-08 19:59 
GeneralRe: HBITMAP to picture control Pin
cherrymotion2-Sep-08 2:30
cherrymotion2-Sep-08 2:30 
GeneralRe: HBITMAP to picture control Pin
Mark Salsbery2-Sep-08 6:59
Mark Salsbery2-Sep-08 6:59 
QuestionHiding a Dialog application on first run Pin
AmitCohen2221-Sep-08 4:50
AmitCohen2221-Sep-08 4:50 
AnswerRe: Hiding a Dialog application on first run Pin
Perspx1-Sep-08 5:00
Perspx1-Sep-08 5:00 
GeneralRe: Hiding a Dialog application on first run Pin
AmitCohen2221-Sep-08 19:54
AmitCohen2221-Sep-08 19:54 
GeneralRe: Hiding a Dialog application on first run Pin
Perspx1-Sep-08 20:04
Perspx1-Sep-08 20:04 
GeneralRe: Hiding a Dialog application on first run Pin
AmitCohen2222-Sep-08 3:26
AmitCohen2222-Sep-08 3:26 
AnswerRe: Hiding a Dialog application on first run Pin
Hamid_RT1-Sep-08 6:32
Hamid_RT1-Sep-08 6:32 
AnswerRe: Hiding a Dialog application on first run Pin
David Crow1-Sep-08 15:38
David Crow1-Sep-08 15:38 
QuestionChanging the IP address of PC from my application Pin
jimjim7331-Sep-08 4:11
jimjim7331-Sep-08 4:11 
AnswerRe: Changing the IP address of PC from my application Pin
David Crow1-Sep-08 4:16
David Crow1-Sep-08 4:16 
QuestionAdvanced visual studio C++ debugging? Pin
MeNot1-Sep-08 3:46
MeNot1-Sep-08 3:46 
QuestionRe: Advanced visual studio C++ debugging? Pin
Mark Salsbery1-Sep-08 11:37
Mark Salsbery1-Sep-08 11:37 
AnswerRe: Advanced visual studio C++ debugging? Pin
Rostfrei1-Sep-08 23:25
Rostfrei1-Sep-08 23:25 

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.