Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Display Pictures Problem -- Again ;) Pin
Rajesh R Subramanian1-May-08 19:11
professionalRajesh R Subramanian1-May-08 19:11 
GeneralRe: Display Pictures Problem -- Again ;) Pin
Nelek1-May-08 22:34
protectorNelek1-May-08 22:34 
GeneralRe: Display Pictures Problem -- Again ;) Pin
Mark Salsbery2-May-08 5:39
Mark Salsbery2-May-08 5:39 
GeneralRe: Display Pictures Problem -- Again ;) Pin
bobber2052-May-08 12:23
bobber2052-May-08 12:23 
AnswerRe: Display Pictures Problem -- Again ;) Pin
Hamid_RT2-May-08 5:05
Hamid_RT2-May-08 5:05 
GeneralRe: Display Pictures Problem -- Again ;) Pin
bobber2052-May-08 12:25
bobber2052-May-08 12:25 
GeneralRe: Display Pictures Problem -- Again ;) Pin
bobber2052-May-08 14:17
bobber2052-May-08 14:17 
GeneralRe: Display Pictures Problem -- Again ;) Pin
Rajkumar R2-May-08 20:16
Rajkumar R2-May-08 20:16 
Since you are drawing in the dialog windows WM_PAINT handler, when the child window (picture control) gets its WM_ERASEBKGND and WM_PAINT message later causes it to erase the image drawn.

you can do,
1. Why don't you set the Bitmap for the picture control at the time of resource editing or dynamically SetBitmap() and allow the picture control to draw in its way.

2. you may subclass the picture control and draw on its paint handler.

3. you actually don't need a picture control if you are drawing the image, remove the picture control and draw the image on the WM_PAINT handler of the dialog as you are doing now, only difference is you don't want to acquire the DC of Picture control but use the dialogs DC and draw where you want in the dialog (where the picture control is supposed to place)

4. Try set the Transparent style to the picture control in the resource editor
GeneralRe: Display Pictures Problem -- Again ;) Pin
bobber2052-May-08 20:48
bobber2052-May-08 20:48 
GeneralRe: Display Pictures Problem -- Again ;) Pin
Mark Salsbery3-May-08 7:34
Mark Salsbery3-May-08 7:34 
GeneralRe: Display Pictures Problem -- Again ;) [modified] Pin
bobber2053-May-08 7:44
bobber2053-May-08 7:44 
GeneralRe: Display Pictures Problem -- Again ;) [modified] Pin
Mark Salsbery3-May-08 8:15
Mark Salsbery3-May-08 8:15 
QuestionFind function in CTreeCtrl Pin
Anu_Bala1-May-08 18:45
Anu_Bala1-May-08 18:45 
QuestionRe: Find function in CTreeCtrl Pin
Rajesh R Subramanian1-May-08 18:51
professionalRajesh R Subramanian1-May-08 18:51 
AnswerRe: Find function in CTreeCtrl Pin
Anu_Bala1-May-08 19:00
Anu_Bala1-May-08 19:00 
QuestionRe: Find function in CTreeCtrl Pin
Rajesh R Subramanian1-May-08 19:10
professionalRajesh R Subramanian1-May-08 19:10 
AnswerRe: Find function in CTreeCtrl Pin
Anu_Bala1-May-08 19:41
Anu_Bala1-May-08 19:41 
AnswerRe: Find function in CTreeCtrl Pin
Rajesh R Subramanian1-May-08 20:19
professionalRajesh R Subramanian1-May-08 20:19 
QuestionWhy do i can not delete Registry Keys ? Pin
gabbana1-May-08 13:39
gabbana1-May-08 13:39 
AnswerRe: Why do i can not delete Registry Keys ? Pin
Randor 1-May-08 14:17
professional Randor 1-May-08 14:17 
GeneralRe: Why do i can not delete Registry Keys ? Pin
gabbana1-May-08 15:19
gabbana1-May-08 15:19 
AnswerRe: Why do i can not delete Registry Keys ? Pin
David Crow2-May-08 5:05
David Crow2-May-08 5:05 
AnswerRe: Why do i can not delete Registry Keys ? Pin
Hamid_RT2-May-08 5:06
Hamid_RT2-May-08 5:06 
QuestionAfter alt-tab, my program thinks that the alt key is still down Pin
Anthony Appleyard1-May-08 12:13
Anthony Appleyard1-May-08 12:13 
AnswerRe: After alt-tab, my program thinks that the alt key is still down Pin
Randor 1-May-08 13:02
professional Randor 1-May-08 13:02 

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.