Click here to Skip to main content
16,011,957 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hdc to Bitmap Pin
GauranG Shah11-Oct-07 22:58
GauranG Shah11-Oct-07 22:58 
GeneralRe: hdc to Bitmap Pin
Mark Salsbery12-Oct-07 4:57
Mark Salsbery12-Oct-07 4:57 
GeneralRe: hdc to Bitmap [SOLVED] Pin
GauranG Shah11-Oct-07 23:51
GauranG Shah11-Oct-07 23:51 
GeneralRe: hdc to Bitmap [SOLVED] Pin
Mark Salsbery12-Oct-07 4:58
Mark Salsbery12-Oct-07 4:58 
GeneralRe: hdc to Bitmap Pin
GauranG Shah10-Oct-07 23:24
GauranG Shah10-Oct-07 23:24 
GeneralRe: hdc to Bitmap Pin
GauranG Shah11-Oct-07 0:46
GauranG Shah11-Oct-07 0:46 
GeneralRe: hdc to Bitmap Pin
GauranG Shah11-Oct-07 2:00
GauranG Shah11-Oct-07 2:00 
GeneralRe: hdc to Bitmap Pin
Nelek11-Oct-07 2:39
protectorNelek11-Oct-07 2:39 
First, sorry.

I thought Dialog based App using win32 was not Doc/View architechture, but yes MFC. As all what I posted is completelly useless I have deleted the messages. I'm going to explain where I did not understand you, if you clarificate a bit, maybe others can help you better.

quote:
"I require to show the dc into the Picture Control as a bitmap"

As I understand it the DC is the intermediate tool to display bitmap or work with the GUI/Printer. So you load a bitmap in it and you put it in somewhere. But the DC itself can not be shown anywhere as a bitmap, and a bitmap selected in it is already a bitmap, so is only a question of load the resource and place it.


quote:
"If I use this I am getting only that bitmap in the Static control and Not the Image of BitBlt."
Which image of the BitBlt? The BitBlt places the Bitmap selected by the DC where you want to place it, copying from the resources, masking or doing whatever you say in its flags. But if you don't have any image in your resources... what is supposed to be copied?...

So... What do you exactly want to be displayed at your picture control?


quote:
"What I want is to display the DC (Device Context ) permanently"
What do u mean with this? If you reload the same resource when the Dialog is being repainted... is not enough permanent?
If the image has to be so permanent... why don't include it in the picture control at design time?


quote:
"I dont know how do show the DC permanent"
???


quote:
"
//If I use getting nothing in the Static picture control
SendMessage(hWndStatic, STM_SETIMAGE , IMAGE_BITMAP,(LPARAM) hb);
//If I use this instead of above it shows the bitmap in the Static picture control
//bitmap means blank image (white image only)
SendMessage(hWndStatic, STM_SETIMAGE , IMAGE_BITMAP,(LPARAM) hb1);
"

is the blank IDB_BITMAP1 not the blank image you are loading?
And if that is not what you want... what do you want to get?


Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

GeneralRe: hdc to Bitmap Pin
GauranG Shah11-Oct-07 2:53
GauranG Shah11-Oct-07 2:53 
GeneralRe: hdc to Bitmap [modified] Pin
Nelek11-Oct-07 3:11
protectorNelek11-Oct-07 3:11 
GeneralRe: hdc to Bitmap Pin
GauranG Shah11-Oct-07 3:35
GauranG Shah11-Oct-07 3:35 
GeneralRe: hdc to Bitmap [modified] Pin
Nelek11-Oct-07 20:29
protectorNelek11-Oct-07 20:29 
GeneralRe: hdc to Bitmap Pin
Mark Salsbery11-Oct-07 20:51
Mark Salsbery11-Oct-07 20:51 
GeneralRe: hdc to Bitmap Pin
Nelek15-Oct-07 23:01
protectorNelek15-Oct-07 23:01 
QuestionGrid computing and Virtualization Pin
GeraldGg10-Oct-07 21:43
GeraldGg10-Oct-07 21:43 
QuestionLPNMITEMACTIVATE is always giving iItem as -1 Pin
yaminisridaran10-Oct-07 21:25
yaminisridaran10-Oct-07 21:25 
AnswerRe: LPNMITEMACTIVATE is always giving iItem as -1 Pin
Roger Broomfield10-Oct-07 21:58
Roger Broomfield10-Oct-07 21:58 
GeneralRe: LPNMITEMACTIVATE is always giving iItem as -1 Pin
yaminisridaran11-Oct-07 0:21
yaminisridaran11-Oct-07 0:21 
GeneralRe: LPNMITEMACTIVATE is always giving iItem as -1 Pin
Member 114900489-Mar-15 0:46
Member 114900489-Mar-15 0:46 
Question[SOLVED] Get text associated with 'Edit Control' in MFC Pin
CodingLover10-Oct-07 21:19
CodingLover10-Oct-07 21:19 
AnswerRe: Get text associated with 'Edit Control' in MFC Pin
Paresh Chitte10-Oct-07 21:39
Paresh Chitte10-Oct-07 21:39 
GeneralRe: Get text associated with 'Edit Control' in MFC Pin
CodingLover10-Oct-07 22:21
CodingLover10-Oct-07 22:21 
GeneralRe: Get text associated with 'Edit Control' in MFC Pin
jhwurmbach10-Oct-07 22:37
jhwurmbach10-Oct-07 22:37 
GeneralRe: Get text associated with 'Edit Control' in MFC Pin
CodingLover10-Oct-07 22:43
CodingLover10-Oct-07 22:43 
GeneralRe: Get text associated with 'Edit Control' in MFC Pin
jhwurmbach10-Oct-07 22:59
jhwurmbach10-Oct-07 22:59 

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.