Click here to Skip to main content
15,897,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ReadFile () reads Junk characters when tried to read from COM1 Port Pin
pandit8417-May-11 18:51
pandit8417-May-11 18:51 
GeneralRe: ReadFile () reads Junk characters when tried to read from COM1 Port Pin
David Crow18-May-11 1:49
David Crow18-May-11 1:49 
AnswerRe: ReadFile () reads Junk characters when tried to read from COM1 Port Pin
kakan17-May-11 21:22
professionalkakan17-May-11 21:22 
GeneralRe: ReadFile () reads Junk characters when tried to read from COM1 Port Pin
pandit8418-May-11 20:23
pandit8418-May-11 20:23 
QuestionStart child window in maximize state Pin
_Flaviu17-May-11 1:53
_Flaviu17-May-11 1:53 
AnswerRe: Start child window in maximize state Pin
Chris Meech17-May-11 2:25
Chris Meech17-May-11 2:25 
QuestionHow to remove flicker effect? Pin
hemant102716-May-11 23:07
hemant102716-May-11 23:07 
AnswerRe: How to remove flicker effect? Pin
Luc Pattyn17-May-11 0:07
sitebuilderLuc Pattyn17-May-11 0:07 
Hi,

I see three factors here:

1.
the repaint job holds a region, only things inside the region needs repainting, so your painting code could take that into account; however, the repaint region often is larger than necessary, so this may well be insufficient.

2.
improving the paint code performance is always a good idea, it also reduces the disturbance, hence flicker, you would notice. It does not avoid it, just makes it less annoying.

3.
the real solution is using double-buffering, where the actual painting happens in a memory-based buffer, then that buffer gets painted in one swoop to the screen, without erasing the current content. You'll have to Google for details in C++, I'm not able to provide you any code as I work mostly in C#.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: How to remove flicker effect? Pin
Rhuros17-May-11 1:02
professionalRhuros17-May-11 1:02 
AnswerRe: How to remove flicker effect? Pin
Hans Dietrich17-May-11 2:15
mentorHans Dietrich17-May-11 2:15 
Questionconvert a CString variable to unsigned long long Pin
VCProgrammer16-May-11 21:31
VCProgrammer16-May-11 21:31 
AnswerRe: convert a CString variable to unsigned long long Pin
Hans Dietrich16-May-11 21:52
mentorHans Dietrich16-May-11 21:52 
GeneralRe: convert a CString variable to unsigned long long Pin
Richard MacCutchan16-May-11 21:55
mveRichard MacCutchan16-May-11 21:55 
AnswerRe: convert a CString variable to unsigned long long Pin
Richard MacCutchan16-May-11 21:54
mveRichard MacCutchan16-May-11 21:54 
AnswerRe: convert a CString variable to unsigned long long Pin
Hans Dietrich16-May-11 22:24
mentorHans Dietrich16-May-11 22:24 
QuestionMemory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute16-May-11 18:34
Abhijit_Satpute16-May-11 18:34 
AnswerRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Hans Dietrich16-May-11 22:20
mentorHans Dietrich16-May-11 22:20 
GeneralRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 1:45
Abhijit_Satpute17-May-11 1:45 
AnswerRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Hans Dietrich17-May-11 2:04
mentorHans Dietrich17-May-11 2:04 
GeneralRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 5:00
Abhijit_Satpute17-May-11 5:00 
QuestionRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
David Crow17-May-11 3:00
David Crow17-May-11 3:00 
AnswerRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 4:59
Abhijit_Satpute17-May-11 4:59 
GeneralRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
David Crow17-May-11 5:03
David Crow17-May-11 5:03 
GeneralRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
Abhijit_Satpute17-May-11 5:25
Abhijit_Satpute17-May-11 5:25 
QuestionRe: Memory leak in CListCtrl::InsertColumn() and CListCtrl::DeleteColumn(). Can anybody explain why this is happning? Pin
David Crow17-May-11 5:51
David Crow17-May-11 5:51 

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.