Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
24-Sep-01 11:43
suss24-Sep-01 11:43 
GeneralRe: Simple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
Michael P Butler25-Sep-01 2:37
Michael P Butler25-Sep-01 2:37 
GeneralHide Menu Pin
24-Sep-01 9:19
suss24-Sep-01 9:19 
GeneralRe: Hide Menu Pin
Oscar Vazquez24-Sep-01 9:49
Oscar Vazquez24-Sep-01 9:49 
GeneralHelp Using CMemDC and its derivatives... Pin
TSquared24-Sep-01 7:36
TSquared24-Sep-01 7:36 
GeneralRe: Help Using CMemDC and its derivatives... Pin
Tim Deveaux24-Sep-01 9:43
Tim Deveaux24-Sep-01 9:43 
GeneralRe: Help Using CMemDC and its derivatives... Pin
TSquared24-Sep-01 13:58
TSquared24-Sep-01 13:58 
GeneralRe: Help Using CMemDC and its derivatives... Pin
Tim Deveaux25-Sep-01 4:27
Tim Deveaux25-Sep-01 4:27 
I guess you can, but you mentioned the CMemDC sample which I saw doing a lot of this stuff in OnPaint, and, in the heady rush of feeling I actually had something to say...

My feeling was that you we're looking to optimize as well as reduce code in OnPaint, and a window with its own DC can do both, although the real bottlneck with blitting seems to be the overall size of the bounding rectangle of the clipping region.

But I think your right, the CS_OWNDC is not a prerequisite for eliminating the CreateCompatibleDC code in OnPaint - does 'feel' a bit safer, though.

later
Oh - and I'm assuming that the size of your dialog doesn't change - that would be a good reason to leave the mem dc setup in OnPaint.

Um - what is it exactly you are going to draw on the mem dc?
GeneralRe: Help Using CMemDC and its derivatives... Pin
25-Sep-01 8:10
suss25-Sep-01 8:10 
GeneralRe: Help Using CMemDC and its derivatives... Pin
Tim Deveaux25-Sep-01 9:11
Tim Deveaux25-Sep-01 9:11 
GeneralRe: Help Using CMemDC and its derivatives... Pin
TSquared25-Sep-01 12:20
TSquared25-Sep-01 12:20 
GeneralRe: Help Using CMemDC and its derivatives... Pin
Tim Deveaux25-Sep-01 14:28
Tim Deveaux25-Sep-01 14:28 
GeneralRe: Help Using CMemDC and its derivatives... Pin
26-Sep-01 8:25
suss26-Sep-01 8:25 
GeneralCString question Pin
RobJones24-Sep-01 7:33
RobJones24-Sep-01 7:33 
GeneralRe: CString question Pin
Michael Dunn24-Sep-01 8:17
sitebuilderMichael Dunn24-Sep-01 8:17 
GeneralRe: Uu-Ha! Pin
Masaaki Onishi24-Sep-01 8:35
Masaaki Onishi24-Sep-01 8:35 
GeneralRe: Uu-Ha! Pin
RobJones24-Sep-01 9:49
RobJones24-Sep-01 9:49 
GeneralRe: Uu-Ha! Pin
RobJones24-Sep-01 10:00
RobJones24-Sep-01 10:00 
GeneralRe: CString question Pin
Oscar Vazquez24-Sep-01 10:08
Oscar Vazquez24-Sep-01 10:08 
GeneralRe: CString question Pin
RobJones25-Sep-01 10:11
RobJones25-Sep-01 10:11 
GeneralRe: CString question Pin
24-Sep-01 21:06
suss24-Sep-01 21:06 
GeneralFont for minimize and maximize buttons Pin
24-Sep-01 7:17
suss24-Sep-01 7:17 
GeneralRe: Font for minimize and maximize buttons Pin
Tomasz Sowinski24-Sep-01 7:34
Tomasz Sowinski24-Sep-01 7:34 
GeneralCOM components using VB or ATL Pin
Ganesh Ramaswamy24-Sep-01 6:38
Ganesh Ramaswamy24-Sep-01 6:38 
GeneralRe: COM components using VB or ATL Pin
Christian Graus24-Sep-01 13:09
protectorChristian Graus24-Sep-01 13:09 

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.