Click here to Skip to main content
15,918,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: GetBuffer?? ReleaseBuffer?? Pin
Ryan Binns1-Jul-03 5:13
Ryan Binns1-Jul-03 5:13 
GeneralRe: GetBuffer?? ReleaseBuffer?? Pin
skinnyreptile1-Jul-03 5:34
skinnyreptile1-Jul-03 5:34 
AnswerRe: GetBuffer?? ReleaseBuffer?? Pin
Joan M1-Jul-03 5:44
professionalJoan M1-Jul-03 5:44 
GeneralRe: GetBuffer?? ReleaseBuffer?? Pin
skinnyreptile1-Jul-03 5:51
skinnyreptile1-Jul-03 5:51 
AnswerRe: GetBuffer?? ReleaseBuffer?? Pin
Kelly Herald1-Jul-03 6:43
Kelly Herald1-Jul-03 6:43 
GeneralRe: GetBuffer?? ReleaseBuffer?? Pin
skinnyreptile1-Jul-03 6:45
skinnyreptile1-Jul-03 6:45 
General?? displaying data Pin
shirleyLo1-Jul-03 3:09
shirleyLo1-Jul-03 3:09 
GeneralRe: ?? displaying data Pin
Joan M1-Jul-03 5:49
professionalJoan M1-Jul-03 5:49 
This is a very generic question, but I'll give it a try:

1. Separate the data from the viewing of the same data...
2. use dynamic memory assignment if you don't know the amount of data that you'll need.
3. think about how many history do you need to maintain.
4. create a control derived from a CStatic called CGraph.
5. Override the OnPaint function of that control in order to draw the axis, the captions and the labels.
6. Draw each point depending on a scale factor.
7. if the graph needs to be scrolled, think about a scrolling bar... (think about drawing the part needed ni order to avoid to collapse too much the CPU)

Hope this helps...
GeneralRe: Window styles Pin
Ravi Bhavnani1-Jul-03 3:15
professionalRavi Bhavnani1-Jul-03 3:15 
GeneralAllocating memory for a multidimensionnal array Pin
Jerome Conus1-Jul-03 1:54
Jerome Conus1-Jul-03 1:54 
GeneralRe: Allocating memory for a multidimensionnal array Pin
Ryan Binns1-Jul-03 2:10
Ryan Binns1-Jul-03 2:10 
GeneralRe: Allocating memory for a multidimensionnal array Pin
Jerome Conus1-Jul-03 2:12
Jerome Conus1-Jul-03 2:12 
GeneralRe: Allocating memory for a multidimensionnal array Pin
Ryan Binns1-Jul-03 2:24
Ryan Binns1-Jul-03 2:24 
General.doc to .txt Pin
martin_j1-Jul-03 1:54
martin_j1-Jul-03 1:54 
GeneralRe: .doc to .txt Pin
David Crow1-Jul-03 3:20
David Crow1-Jul-03 3:20 
GeneralRe: .doc to .txt Pin
martin_j1-Jul-03 3:43
martin_j1-Jul-03 3:43 
GeneralAbout PINT Pin
FlyingDancer1-Jul-03 1:51
FlyingDancer1-Jul-03 1:51 
GeneralRe: About PINT Pin
David Crow1-Jul-03 3:21
David Crow1-Jul-03 3:21 
GeneralRe: About PINT Pin
basementman1-Jul-03 4:57
basementman1-Jul-03 4:57 
GeneralRe: About PINT Pin
FlyingDancer1-Jul-03 15:16
FlyingDancer1-Jul-03 15:16 
Generalconvert SYSTEMTIME to string Pin
YaronNir1-Jul-03 1:45
YaronNir1-Jul-03 1:45 
GeneralRe: convert SYSTEMTIME to string Pin
Michael P Butler1-Jul-03 1:51
Michael P Butler1-Jul-03 1:51 
GeneralRe: convert SYSTEMTIME to string Pin
YaronNir1-Jul-03 2:00
YaronNir1-Jul-03 2:00 
GeneralRe: convert SYSTEMTIME to string Pin
User 66581-Jul-03 2:08
User 66581-Jul-03 2:08 
GeneralRe: convert SYSTEMTIME to string Pin
YaronNir1-Jul-03 2:13
YaronNir1-Jul-03 2:13 

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.