Click here to Skip to main content
16,011,868 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GUI implementation Pin
Tomasz Sowinski6-Mar-02 0:12
Tomasz Sowinski6-Mar-02 0:12 
GeneralRe: GUI implementation Pin
Morozov Alexey6-Mar-02 13:25
Morozov Alexey6-Mar-02 13:25 
GeneralThread Probs (again) Pin
MarkPQ5-Mar-02 17:00
MarkPQ5-Mar-02 17:00 
GeneralRe: Thread Probs (again) Pin
5-Mar-02 17:24
suss5-Mar-02 17:24 
GeneralRe: Thread Probs (again) Pin
MarkPQ5-Mar-02 17:43
MarkPQ5-Mar-02 17:43 
GeneralRe: Thread Probs (again) Pin
MarkPQ5-Mar-02 17:57
MarkPQ5-Mar-02 17:57 
GeneralRe: Thread Probs (again) Pin
5-Mar-02 18:24
suss5-Mar-02 18:24 
GeneralDouble buffer example Pin
alex.barylski5-Mar-02 15:45
alex.barylski5-Mar-02 15:45 
Anybody know any good explanations of the inner workings of double buffering to remove flicker...?

I'm using the CMemDC class right now, but am currently experiencing problems, so i'd like to tackle the problem line by line and just do it manually.

I get the gist of it and even implemented it, but I used a bitmap from resource instead of creating it dynamically using CreateCompatibleBitmap. I'm doing something wrong and would like to see an exmaple of how to do it fom start to finish.

I'm aware of the classes currently on CP, but would like an explanation of double buffering with a small example I can pick apart and figure out what i'm doing wrong.

CreateCompatibleDC
CreateCompatibleBitmap
Select compatible bitmap into compatible DC
LineTo on compatible DC
BitBlt compatible bitmap to original DC

What am I missing here...?

Thanx a bunch!

"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
GeneralRe: Double buffer example Pin
Tomasz Sowinski6-Mar-02 0:04
Tomasz Sowinski6-Mar-02 0:04 
Generalreal simple question Pin
5-Mar-02 15:32
suss5-Mar-02 15:32 
GeneralRe: real simple question Pin
alex.barylski5-Mar-02 16:02
alex.barylski5-Mar-02 16:02 
GeneralRe: real simple question Pin
Michael Dunn5-Mar-02 16:28
sitebuilderMichael Dunn5-Mar-02 16:28 
GeneralRe: real simple question Pin
5-Mar-02 16:42
suss5-Mar-02 16:42 
GeneralRe: real simple question Pin
alex.barylski5-Mar-02 17:53
alex.barylski5-Mar-02 17:53 
GeneralRe: real simple question Pin
Todd.Harvey6-Mar-02 9:13
Todd.Harvey6-Mar-02 9:13 
QuestionWhats wrong with this? Pin
SilverShalkin5-Mar-02 14:01
SilverShalkin5-Mar-02 14:01 
AnswerRe: Whats wrong with this? Pin
Lofote5-Mar-02 14:26
Lofote5-Mar-02 14:26 
GeneralRe: Whats wrong with this? Pin
Christian Graus5-Mar-02 14:27
protectorChristian Graus5-Mar-02 14:27 
GeneralRe: Whats wrong with this? Pin
SilverShalkin5-Mar-02 14:49
SilverShalkin5-Mar-02 14:49 
GeneralRe: Whats wrong with this? Pin
Jon Sagara5-Mar-02 14:49
Jon Sagara5-Mar-02 14:49 
GeneralRe: Whats wrong with this? Pin
Rohit  Sinha5-Mar-02 15:11
Rohit  Sinha5-Mar-02 15:11 
GeneralRe: Whats wrong with this? Pin
Jon Sagara5-Mar-02 15:25
Jon Sagara5-Mar-02 15:25 
GeneralRe: Whats wrong with this? Pin
Tim Smith5-Mar-02 15:30
Tim Smith5-Mar-02 15:30 
GeneralRe: Whats wrong with this? Pin
Jon Sagara5-Mar-02 15:36
Jon Sagara5-Mar-02 15:36 
GeneralRe: Whats wrong with this? Pin
Christian Graus5-Mar-02 14:56
protectorChristian Graus5-Mar-02 14:56 

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.