Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: save structure in file [modified] Pin
Aescleal30-Jan-11 20:07
Aescleal30-Jan-11 20:07 
AnswerRe: save structure in file Pin
Cool_Dev30-Jan-11 20:07
Cool_Dev30-Jan-11 20:07 
QuestionImage Flickering Pin
john563230-Jan-11 18:39
john563230-Jan-11 18:39 
AnswerRe: Image Flickering Pin
Cool_Dev30-Jan-11 18:59
Cool_Dev30-Jan-11 18:59 
GeneralRe: Image Flickering Pin
john563230-Jan-11 19:16
john563230-Jan-11 19:16 
GeneralRe: Image Flickering Pin
Cool_Dev30-Jan-11 19:31
Cool_Dev30-Jan-11 19:31 
AnswerRe: Image Flickering Pin
S p k 52130-Jan-11 19:28
S p k 52130-Jan-11 19:28 
AnswerRe: Image Flickering Pin
Andrew Brock30-Jan-11 19:35
Andrew Brock30-Jan-11 19:35 
This is a very common problem with Windows GUI, and is appropriately named Flickering, and the solution to the problem is called Flicker Free Drawing.

There are 2 parts to fixing the problem:
1. You need to replace the WM_ERASEBKGND (or OnEraseBkgnd() in MFC). The default code for this is to clear the area of the screen, which is the main part of the flickering.
2. You need to use a MemoryDC to draw everything to (this usually includes erasing the background) then the last thing you do is copy the MemoryDC to the screen DC.

There is no need for me to show you any code as there is an endless supply on Google[^] and also right here on the Code Project[^]
QuestionLarge JPEG/PNG Image Sequence Looping Pin
Golden Lee30-Jan-11 0:57
Golden Lee30-Jan-11 0:57 
AnswerRe: Large JPEG/PNG Image Sequence Looping Pin
Chris Losinger31-Jan-11 6:04
professionalChris Losinger31-Jan-11 6:04 
QuestionHow to use CTabCtrl::GetCurSel Pin
Tiffanie Jones29-Jan-11 9:48
Tiffanie Jones29-Jan-11 9:48 
AnswerRe: How to use CTabCtrl::GetCurSel Pin
User 742933829-Jan-11 10:46
professionalUser 742933829-Jan-11 10:46 
GeneralRe: How to use CTabCtrl::GetCurSel Pin
Tiffanie Jones29-Jan-11 16:26
Tiffanie Jones29-Jan-11 16:26 
AnswerRe: How to use CTabCtrl::GetCurSel Pin
User 742933829-Jan-11 20:37
professionalUser 742933829-Jan-11 20:37 
QuestionSaving an image Pin
softwaremonkey29-Jan-11 9:15
softwaremonkey29-Jan-11 9:15 
AnswerRe: Saving an image Pin
CPallini29-Jan-11 10:24
mveCPallini29-Jan-11 10:24 
GeneralRe: Saving an image Pin
softwaremonkey30-Jan-11 8:55
softwaremonkey30-Jan-11 8:55 
GeneralRe: Saving an image Pin
CPallini30-Jan-11 9:10
mveCPallini30-Jan-11 9:10 
QuestionCDBException because access file table item have value like "#Error". Pin
Le@rner28-Jan-11 19:32
Le@rner28-Jan-11 19:32 
AnswerRe: CDBException because access file table item have value like "#Error". Pin
Richard MacCutchan28-Jan-11 21:24
mveRichard MacCutchan28-Jan-11 21:24 
QuestionStepper Motor Control through Parallel Port [modified] Pin
saleheh28-Jan-11 19:10
saleheh28-Jan-11 19:10 
AnswerRe: Stepper Motor Control through Parallel Port Pin
Richard MacCutchan28-Jan-11 21:22
mveRichard MacCutchan28-Jan-11 21:22 
GeneralRe: Stepper Motor Control through Parallel Port Pin
Niklas L28-Jan-11 22:20
Niklas L28-Jan-11 22:20 
GeneralRe: Stepper Motor Control through Parallel Port Pin
CPallini28-Jan-11 22:36
mveCPallini28-Jan-11 22:36 
AnswerRe: Stepper Motor Control through Parallel Port Pin
Luc Pattyn29-Jan-11 1:22
sitebuilderLuc Pattyn29-Jan-11 1:22 

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.