Hey everyone I've been using DrawText() for just outputting simple text into a CView I'm using in my application.
I'm now at a stopping point. I basically want to display a table of data like this where each value is aligned under its column header.
Sensor IR US
1 0 0
2 0 0
3 0 0
4 0 0
5 0 0
6 0 0
7 0 0
8 0 0
All the IR and US numbers come from an array from index 1 to index 16, and the sensor numbers are hardcoded....
First of all how can I get the text output formatted like that?
a sample single value output now looks like
DrawText(CString(strSensorValues[nIndex]), rcSensor, DT_SINGLELINE | DT_CENTER | DT_VCENTER | DT_NOCLIP);
I have other stuff drawing in this View as well so I dont' want to screw that up.. I have included a link to my source code file, and an image file of what the View currently looks like.
I wouldn't think something like text display and formatting would be this hard, but I'm not used to the Windows side of a lot of the programming stuff yet.
The link is http://www.nmt.edu/~dwent/
and the two files are view.jpg and StatusView.cpp
Thanks a lot
