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

C / C++ / MFC

 
GeneralRe: Before the system. HELP!!! Pin
Igor Sukhov19-Aug-01 9:12
Igor Sukhov19-Aug-01 9:12 
Questionfree database? analysis tools? Pin
18-Aug-01 10:12
suss18-Aug-01 10:12 
AnswerRe: free database? analysis tools? Pin
Malcolm McMahon21-Aug-01 4:29
Malcolm McMahon21-Aug-01 4:29 
GeneralRe: free database? analysis tools? Pin
21-Aug-01 5:44
suss21-Aug-01 5:44 
GeneralRe: free database? analysis tools? Pin
21-Aug-01 11:51
suss21-Aug-01 11:51 
AnswerRe: free database? analysis tools? Pin
Steen Krogsgaard21-Aug-01 22:13
Steen Krogsgaard21-Aug-01 22:13 
GeneralConvert Win32 to MFC Pin
18-Aug-01 8:33
suss18-Aug-01 8:33 
GeneralRe: Convert Win32 to MFC Pin
Christian Graus18-Aug-01 14:09
protectorChristian Graus18-Aug-01 14:09 
A few issues:

1/ GetPixel, SetPixel are VERY slow methods - use them at your own risk

2/ CDC is a thin wrapper on an HDC, it is likely to work exactly the same except that it will handle the HDC being released when going out of scope.

The correct way would be within the grid in OnEraseBackground or OnPaint to use the CDC there. If you want to do it outside these methods, then you can construct a CDC from a HDC. The method you want is CDC::Attach, as in

CDC dc;
dc.Attach(hDC);



Christian

Secrets of a happy marriage #27:

Never go to bed if you are mad at each other. It's more fun to stay up and fight.
GeneralRe: Convert Win32 to MFC Pin
Matt Newman20-Aug-01 6:47
Matt Newman20-Aug-01 6:47 
GeneralRe: Convert Win32 to MFC Pin
loket19-Aug-01 12:49
loket19-Aug-01 12:49 
Generalclip overlapped OnPaint style CS_STYLE Pin
Leon18-Aug-01 0:29
Leon18-Aug-01 0:29 
GeneralRe: clip overlapped OnPaint style CS_STYLE Pin
Tim Deveaux18-Aug-01 4:49
Tim Deveaux18-Aug-01 4:49 
GeneralRe: clip overlapped OnPaint style CS_STYLE Pin
Leon18-Aug-01 22:43
Leon18-Aug-01 22:43 
GeneralOoops - I goofed again Pin
Tim Deveaux18-Aug-01 5:30
Tim Deveaux18-Aug-01 5:30 
GeneralRe: Ooops - I goofed again Pin
Leon18-Aug-01 22:44
Leon18-Aug-01 22:44 
GeneralRe: Ooops - I goofed again Pin
Leon19-Aug-01 1:51
Leon19-Aug-01 1:51 
GeneralRe: Ooops - I goofed again Pin
Tim Deveaux19-Aug-01 9:07
Tim Deveaux19-Aug-01 9:07 
GeneralRe: clip overlapped OnPaint style CS_STYLE Pin
Paolo Messina20-Aug-01 12:21
professionalPaolo Messina20-Aug-01 12:21 
GeneralCEdit automatic scrolling Pin
aarong17-Aug-01 18:23
aarong17-Aug-01 18:23 
GeneralRe: CEdit automatic scrolling Pin
The_Server18-Aug-01 11:19
The_Server18-Aug-01 11:19 
GeneralPure C Dialog Based Application Pin
NullStream17-Aug-01 17:59
NullStream17-Aug-01 17:59 
GeneralRe: Pure C Dialog Based Application Pin
Tim Deveaux18-Aug-01 5:00
Tim Deveaux18-Aug-01 5:00 
GeneralRe: Pure C Dialog Based Application Pin
Todd Smith18-Aug-01 6:56
Todd Smith18-Aug-01 6:56 
GeneralMFC Source Code Form++ Library(Visual C++,MFC) Pin
17-Aug-01 17:49
suss17-Aug-01 17:49 
GeneralRe: MFC Source Code Form++ Library(Visual C++,MFC) Pin
Christian Graus17-Aug-01 22:41
protectorChristian Graus17-Aug-01 22:41 

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.