Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Save file error in MSVC 6.0 Pin
John M. Drescher17-Jun-03 7:01
John M. Drescher17-Jun-03 7:01 
GeneralBug: NM_RDBLCLK msg in TreeView Control Pin
Partha Kr. Chakraborti16-Jun-03 20:49
Partha Kr. Chakraborti16-Jun-03 20:49 
GeneralRe: Bug: NM_RDBLCLK msg in TreeView Control Pin
PJ Arends16-Jun-03 21:43
professionalPJ Arends16-Jun-03 21:43 
GeneralRe: Bug: NM_RDBLCLK msg in TreeView Control Pin
Partha Kr. Chakraborti16-Jun-03 23:18
Partha Kr. Chakraborti16-Jun-03 23:18 
GeneralPainting window question Pin
Cedric Moonen16-Jun-03 20:18
Cedric Moonen16-Jun-03 20:18 
GeneralRe: Painting window question Pin
Cedric Moonen16-Jun-03 20:21
Cedric Moonen16-Jun-03 20:21 
GeneralRe: Painting window question Pin
PJ Arends16-Jun-03 20:34
professionalPJ Arends16-Jun-03 20:34 
GeneralRe: Painting window question Pin
Cedric Moonen16-Jun-03 20:48
Cedric Moonen16-Jun-03 20:48 
Yes I know, but let me explain my problem:
this custom control is in fact a 2D chart control. And I want to plot lines in it in a real-time mode (a point is plotted every 13 msec, so that's really fast). So, I don't want to redraw the complete control every time I add a point. In the OnPaint function, I draw the background (axes and grid) and I have a function (AddPoint), that draw directly on the screen with a transparent background everytime I receive a new point. The OnEraseBkgnd function has been overidden also: it does nothing.

So, OnPaint is just called when the control needs to be redrawn and in this function, I redraw also the complete lines. But this function is normally called only once at start and when, for example, a part of the control has been hidden by another window.

So, if I draw in the AddPoint function, why isn't it working? Is there a call to the OnPaint function ???

Thanks
GeneralRe: Painting window question Pin
PJ Arends16-Jun-03 21:20
professionalPJ Arends16-Jun-03 21:20 
GeneralRe: Painting window question Pin
Cedric Moonen16-Jun-03 21:28
Cedric Moonen16-Jun-03 21:28 
GeneralRe: Painting window question Pin
PJ Arends16-Jun-03 21:46
professionalPJ Arends16-Jun-03 21:46 
Generalquestion about dialog Pin
gucy16-Jun-03 19:41
gucy16-Jun-03 19:41 
GeneralRe: question about dialog Pin
PJ Arends16-Jun-03 20:44
professionalPJ Arends16-Jun-03 20:44 
GeneralRe: question about dialog Pin
gucy16-Jun-03 21:06
gucy16-Jun-03 21:06 
GeneralRe: question about dialog Pin
Old Gun16-Jun-03 22:15
Old Gun16-Jun-03 22:15 
QuestionVK_F10 with PreTranslateMessage not work? Pin
chen16-Jun-03 19:28
chen16-Jun-03 19:28 
AnswerRe: VK_F10 with PreTranslateMessage not work? Pin
Eugene Pustovoyt16-Jun-03 22:14
Eugene Pustovoyt16-Jun-03 22:14 
AnswerRe: VK_F10 with PreTranslateMessage not work? Pin
Uma Mahes16-Jun-03 22:30
Uma Mahes16-Jun-03 22:30 
GeneralRe: VK_F10 with PreTranslateMessage not work? Pin
chen16-Jun-03 23:40
chen16-Jun-03 23:40 
Questionhow can i make a edit box just like the outlook's edit box? Pin
allenhu16-Jun-03 18:58
allenhu16-Jun-03 18:58 
AnswerRe: how can i make a edit box just like the outlook's edit box? Pin
David Crow17-Jun-03 3:11
David Crow17-Jun-03 3:11 
GeneralGetting the Window Class name Pin
albean16-Jun-03 18:55
albean16-Jun-03 18:55 
GeneralRe: Getting the Window Class name Pin
PJ Arends16-Jun-03 19:06
professionalPJ Arends16-Jun-03 19:06 
GeneralRe: Getting the Window Class name Pin
Uma Mahes16-Jun-03 19:15
Uma Mahes16-Jun-03 19:15 
Questionlandscape print in dialog? Pin
JockeP16-Jun-03 18:23
JockeP16-Jun-03 18:23 

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.