Click here to Skip to main content
15,914,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Double Buffering in a Dialog?? Pin
David_Jenkins21-Oct-02 2:12
David_Jenkins21-Oct-02 2:12 
Thanks guys but...

When I tried using CreateCompatibleBitmap I got a monochrome bitmap for some reason, I might look into that again later though.

Hockey suggested it might be my OnEraseBkgnd, I had to manually add the OnEraseBackground handler and force it to return FALSE but it didn't alter anything.
BUT his idea did put me on the right track, in my OnTimer even I was calling Invalidate() instead of Invalidate(FALSE). Frown | :-(

I already made the other suggestions you made earlier today, storing memDC and bitmap as member variables.


I have one more question though.
Back in the old days when I was using one of the Gnu C compilers instead of bitblitting the backbuffer to the front buffer I'd just swap them round.
So the backbuffer became the screens bitmap and the screens bitmap became the backbuffer for the next drawing cycle.
I've had a quick go at it but it doesn't work. :-/
Like using this instead of a dc.bitblt() statement.

if(usingBack){
dc.SelectObject(backBuffer);
usingBack = false;
}else{
dc.SelectObject(originalBuffer);
usingBack = true;
}

I have a funny feeling it's just not possible to do that though.
Damn I just realised I wasn't selecting the alternative bitmap into the memDC so it'd draw onto that, I'll have to go and do some more work on this...


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 
GeneralRe: Multiline listview?!?!!?!? Pin
Nasty_p20-Oct-02 9:16
Nasty_p20-Oct-02 9:16 

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.