Click here to Skip to main content
16,005,826 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiontrying to draw a line graph Pin
aei_totten15-Jul-08 6:04
aei_totten15-Jul-08 6:04 
AnswerRe: trying to draw a line graph Pin
Saurabh.Garg15-Jul-08 6:46
Saurabh.Garg15-Jul-08 6:46 
AnswerRe: trying to draw a line graph Pin
Cedric Moonen15-Jul-08 7:28
Cedric Moonen15-Jul-08 7:28 
GeneralRe: trying to draw a line graph Pin
aei_totten15-Jul-08 8:13
aei_totten15-Jul-08 8:13 
AnswerRe: trying to draw a line graph Pin
led mike15-Jul-08 11:08
led mike15-Jul-08 11:08 
GeneralRe: trying to draw a line graph Pin
Cedric Moonen15-Jul-08 20:16
Cedric Moonen15-Jul-08 20:16 
GeneralRe: trying to draw a line graph Pin
Mark Salsbery16-Jul-08 7:04
Mark Salsbery16-Jul-08 7:04 
GeneralRe: trying to draw a line graph Pin
Cedric Moonen16-Jul-08 7:55
Cedric Moonen16-Jul-08 7:55 
Mark Salsbery wrote:
There's still no reason to redraw faster than a monitor is refreshing


One 'reason' would be that the chart control you are using doesn't support refreshing at constant rate Smile | :) . Most of the time, you add a point to a series and the control displays it immediately. But you can do that in a better way (like I did for my control for example Big Grin | :-D ): in the case of my chart control, adding a point to a series will only draw the missing segment. But of course that only happen under a certain condition: if the axes are not automatic for example (the control doesn't need to be refreshed in that case).

Another solution would be to store those points in your application and draw several of them at a certain time. But then you'll need to use a timer to trigger the redrawing of the points (or a thread).

Cédric Moonen
Software developer

Charting control [v1.4]
OpenGL game tutorial in C++

GeneralRe: trying to draw a line graph Pin
Mark Salsbery16-Jul-08 12:21
Mark Salsbery16-Jul-08 12:21 
QuestionIs it possible to process ICMP by Multicast? Pin
CresShadow15-Jul-08 4:52
CresShadow15-Jul-08 4:52 
GeneralRe: Is it possible to process ICMP by Multicast? Pin
Matthew Faithfull15-Jul-08 5:26
Matthew Faithfull15-Jul-08 5:26 
QuestionDebug and Release Mode Pin
Anandi.VC15-Jul-08 3:14
Anandi.VC15-Jul-08 3:14 
AnswerRe: Debug and Release Mode Pin
CPallini15-Jul-08 3:17
mveCPallini15-Jul-08 3:17 
GeneralRe: Debug and Release Mode Pin
led mike15-Jul-08 4:16
led mike15-Jul-08 4:16 
GeneralRe: Debug and Release Mode Pin
CPallini15-Jul-08 7:45
mveCPallini15-Jul-08 7:45 
GeneralRe: Debug and Release Mode Pin
Anandi.VC15-Jul-08 20:35
Anandi.VC15-Jul-08 20:35 
GeneralYou're welcolme. Pin
CPallini15-Jul-08 20:56
mveCPallini15-Jul-08 20:56 
QuestionIs there any API to get connected to DHCP. Pin
an8915-Jul-08 0:57
an8915-Jul-08 0:57 
AnswerRe: Is there any API to get connected to DHCP. Pin
ThatsAlok15-Jul-08 3:18
ThatsAlok15-Jul-08 3:18 
AnswerRe: Is there any API to get connected to DHCP. Pin
Mark Salsbery15-Jul-08 6:05
Mark Salsbery15-Jul-08 6:05 
Question_countof undeclared identifier, tell me why? Pin
fantasy121515-Jul-08 0:53
fantasy121515-Jul-08 0:53 
QuestionRe: _countof undeclared identifier, tell me why? Pin
Rajesh R Subramanian15-Jul-08 1:00
professionalRajesh R Subramanian15-Jul-08 1:00 
QuestionRe: _countof undeclared identifier, tell me why? Pin
CPallini15-Jul-08 1:01
mveCPallini15-Jul-08 1:01 
AnswerRe: _countof undeclared identifier, tell me why? Pin
_AnsHUMAN_ 15-Jul-08 1:34
_AnsHUMAN_ 15-Jul-08 1:34 
GeneralRe: _countof undeclared identifier, tell me why? Pin
Rajesh R Subramanian15-Jul-08 2:09
professionalRajesh R Subramanian15-Jul-08 2:09 

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.