Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: obj versus &obj - performance test Pin
Maximilien7-Oct-05 3:19
Maximilien7-Oct-05 3:19 
GeneralRe: obj versus &obj - performance test Pin
ddmcr7-Oct-05 3:24
ddmcr7-Oct-05 3:24 
AnswerRe: obj versus &obj - performance test ( edited with more results : Pin
Maximilien7-Oct-05 2:59
Maximilien7-Oct-05 2:59 
GeneralRe: obj versus &obj - performance test Pin
ddmcr7-Oct-05 3:02
ddmcr7-Oct-05 3:02 
GeneralRe: obj versus &obj - performance test ( edited with more results : Pin
ddmcr7-Oct-05 4:17
ddmcr7-Oct-05 4:17 
AnswerRe: obj versus &obj - performance test Pin
S. Senthil Kumar7-Oct-05 3:19
S. Senthil Kumar7-Oct-05 3:19 
AnswerRe: obj versus &obj - performance test Pin
Tim Smith7-Oct-05 3:56
Tim Smith7-Oct-05 3:56 
QuestionCStatic Drawing Pin
Jagadeesh VN7-Oct-05 1:45
Jagadeesh VN7-Oct-05 1:45 
Hi,

I am having some problems with drawing a transparent bitmap into a CStatic derived object. I am drawing inside the OnPaint handler using Graphics ( GDI+ ) object. Since Its a transparent image, the first time when the control is drawn, I am getting the image properly. From next time onwards, when OnPaint in invoked, I am getting a black border for the image, which becomes thicker and thicker as the OnPaint in invoked ( I have to call Invalidate in Mouse over).

Graphic object is attached to a Bitmap object and thats Bitmap object is used to draw to the CDC using DrawImage function. when I saved that Bitmap to a file, the image looks alright. So I guess its the DC of the CStatic control which is crating the problem. Also this CStatic control is placed in CDialog, and whenever, the dialog is minimized and restored, the image will be rendered correctly.

I would appreciate any help on this behaviour.

Looking forward for an answer

Thanks
Jugs

"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
QuestionMenu border Pin
hatemtaleb7-Oct-05 1:38
hatemtaleb7-Oct-05 1:38 
AnswerRe: Menu border Pin
toxcct7-Oct-05 1:41
toxcct7-Oct-05 1:41 
GeneralRe: Menu border Pin
hatemtaleb7-Oct-05 1:48
hatemtaleb7-Oct-05 1:48 
AnswerRe: Menu border (edited) Pin
toxcct7-Oct-05 1:52
toxcct7-Oct-05 1:52 
GeneralRe: Menu border (edited) Pin
hatemtaleb7-Oct-05 2:13
hatemtaleb7-Oct-05 2:13 
QuestionEdit boxes Interaction Pin
swaapu7-Oct-05 1:32
swaapu7-Oct-05 1:32 
QuestionRe: Edit boxes Interaction Pin
David Crow7-Oct-05 3:15
David Crow7-Oct-05 3:15 
AnswerRe: Edit boxes Interaction Pin
swaapu7-Oct-05 19:23
swaapu7-Oct-05 19:23 
QuestionEdit boxes Interaction Pin
swaapu7-Oct-05 1:32
swaapu7-Oct-05 1:32 
QuestionDrawTextEx not working properly when printing on Windows 98 Pin
Paul Vickery7-Oct-05 1:24
professionalPaul Vickery7-Oct-05 1:24 
AnswerRe: DrawTextEx not working properly when printing on Windows 98 Pin
KaЯl7-Oct-05 1:54
KaЯl7-Oct-05 1:54 
AnswerRe: DrawTextEx not working properly when printing on Windows 98 Pin
Paul Vickery7-Oct-05 5:18
professionalPaul Vickery7-Oct-05 5:18 
GeneralRe: DrawTextEx not working properly when printing on Windows 98 Pin
KaЯl7-Oct-05 5:26
KaЯl7-Oct-05 5:26 
AnswerRe: DrawTextEx not working properly when printing on Windows 98 Pin
Paul Vickery7-Oct-05 5:43
professionalPaul Vickery7-Oct-05 5:43 
GeneralRe: DrawTextEx not working properly when printing on Windows 98 Pin
KaЯl7-Oct-05 6:05
KaЯl7-Oct-05 6:05 
GeneralRe: DrawTextEx not working properly when printing on Windows 98 Pin
Paul Vickery9-Oct-05 23:02
professionalPaul Vickery9-Oct-05 23:02 
GeneralRe: DrawTextEx not working properly when printing on Windows 98 Pin
KaЯl9-Oct-05 23:24
KaЯl9-Oct-05 23:24 

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.