Hi,
I want to put a point in window and I can't find procedure. Maybe I have to use LineTo?
I want to make digital oscilloscope and I thinking about visualization. Is my idea good?

Regards and thanks,
Michal T.
Posted on 2001-09-07 12:21:47 by micky
PolyLine would probably be a nice one to use. It allows you to store the points in an array in memory (you'll be doing this anyway I'm sure) and just pass the array to the function.

If you start to suffer from flickering (maybe if you try to get flashier) use a memory DC as a back buffer. Draw the FX in it and BitBlt that back buffer to the window DC.
Posted on 2001-09-07 12:34:41 by Eóin
You can use 'SetPixel()' to put a pixel.

COLORREF SetPixel(HDC hdc,int X,int Y,COLORREF crColor);

But I think,
Polyline is better choice in your case like Zadkiel said.
Posted on 2001-09-09 06:53:33 by nyam
micky,

Zadkiel's got the right idea. Check out Ron Thomas Sinewave
example at this link: Ron Thomas


Can you draw straight lines with Polyline??

I have an old 10M oscilloscope and when I view a digital wave
it looks like its made up of straight vertical and horizontal lines.

When I view an analog wave it looks like a curving up and down
sinewave like Thomas's example.

I am curious as to how you plan to input the signal to the PC?
Do you intend on using the parallel or com ports?
Posted on 2001-09-09 09:10:18 by bcraven
This oscilloscope will be connected via parallel port, and will have digital analyzer. And ... controlled by microprocessor (PIC)
Posted on 2001-09-10 06:39:24 by micky