Click here to Skip to main content
15,913,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dialog bar - tab order Pin
Tomasz Sowinski21-Oct-02 0:23
Tomasz Sowinski21-Oct-02 0:23 
GeneralCPropertySheet Pin
Max Santos20-Oct-02 12:27
Max Santos20-Oct-02 12:27 
GeneralRe: CPropertySheet Pin
Tomasz Sowinski21-Oct-02 0:24
Tomasz Sowinski21-Oct-02 0:24 
GeneralRe: CPropertySheet Pin
Max Santos23-Oct-02 13:51
Max Santos23-Oct-02 13:51 
QuestionDouble Buffering in a Dialog?? Pin
David_Jenkins20-Oct-02 12:06
David_Jenkins20-Oct-02 12:06 
AnswerRe: Double Buffering in a Dialog?? Pin
Chris Losinger20-Oct-02 12:11
professionalChris Losinger20-Oct-02 12:11 
AnswerRe: Double Buffering in a Dialog?? Pin
alex.barylski20-Oct-02 12:14
alex.barylski20-Oct-02 12:14 
AnswerRe: Double Buffering in a Dialog?? Pin
Paul M Watt20-Oct-02 18:04
mentorPaul M Watt20-Oct-02 18:04 
As Chris said earlier I would use CreateCompatibleBitmap to create your bitmap compatible to the paint DC.

I also wanted to add, you could add the MemoryDC and your bitmap as a member variable to your window class and keep that around as long as your window exists, or at least is visible.

That way you would not have to recreate and initialize the memoryDC and bitmap for each paint message. There are a lot of them, and you would probably see an increase in your paint speed this way.

This would also make it possible for your update routine to paint to the backbuffer bitmap that you are creating and you could then have the bitmap blitted to the screen in your OnEraseBackground handler. This would move all of the code from your OnPaint handler BTW.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Double Buffering in a Dialog?? Pin
David_Jenkins21-Oct-02 2:12
David_Jenkins21-Oct-02 2:12 
GeneralRe: Double Buffering in a Dialog?? Pin
Paul M Watt21-Oct-02 4:18
mentorPaul M Watt21-Oct-02 4:18 
GeneralRe: Double Buffering in a Dialog?? Pin
David_Jenkins22-Oct-02 4:42
David_Jenkins22-Oct-02 4:42 
Generalstructure access from another view.. Pin
Anonymous20-Oct-02 11:07
Anonymous20-Oct-02 11:07 
GeneralRe: structure access from another view.. Pin
Joaquín M López Muñoz20-Oct-02 11:11
Joaquín M López Muñoz20-Oct-02 11:11 
GeneralRe: structure access from another view.. Pin
Anonymous20-Oct-02 11:29
Anonymous20-Oct-02 11:29 
GeneralRe: structure access from another view.. Pin
Joaquín M López Muñoz20-Oct-02 11:33
Joaquín M López Muñoz20-Oct-02 11:33 
GeneralRe: structure access from another view.. Pin
Anonymous20-Oct-02 11:41
Anonymous20-Oct-02 11:41 
GeneralOne last question Pin
Anonymous20-Oct-02 13:47
Anonymous20-Oct-02 13:47 
GeneralThreading & CStringArray - long post warning Pin
carrie20-Oct-02 10:05
carrie20-Oct-02 10:05 
GeneralRe: Threading & CStringArray - long post warning Pin
Joaquín M López Muñoz20-Oct-02 10:43
Joaquín M López Muñoz20-Oct-02 10:43 
GeneralRe: Threading & CStringArray - long post warning Pin
carrie20-Oct-02 11:02
carrie20-Oct-02 11:02 
GeneralRe: Threading & CStringArray - long post warning Pin
carrie20-Oct-02 13:41
carrie20-Oct-02 13:41 
QuestionMultiline listview?!?!!?!? Pin
Nasty_p20-Oct-02 7:49
Nasty_p20-Oct-02 7:49 
AnswerRe: Multiline listview?!?!!?!? Pin
Joaquín M López Muñoz20-Oct-02 8:15
Joaquín M López Muñoz20-Oct-02 8:15 
GeneralRe: Multiline listview?!?!!?!? Pin
Nasty_p20-Oct-02 8:25
Nasty_p20-Oct-02 8:25 
GeneralRe: Multiline listview?!?!!?!? Pin
Joaquín M López Muñoz20-Oct-02 8:54
Joaquín M López Muñoz20-Oct-02 8:54 

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.