BruceWho
2006-12-05 14:26:47 UTC
Hi, all
I add my own code in OnPaint() of a static control and want to draw
something(e.g. sin wave) but I find that some part of the plot goes out
of the static control area. But If I draw it with CClientDC in
functions other than OnPaint() plot never goes out of the static
control.
Could anybody tell how to make only the part of plot in static control
be drawn? I just donnot want to caculate if each point/curve is in or
out of the static control.
Any help would be appreciated!
Bruce
I add my own code in OnPaint() of a static control and want to draw
something(e.g. sin wave) but I find that some part of the plot goes out
of the static control area. But If I draw it with CClientDC in
functions other than OnPaint() plot never goes out of the static
control.
Could anybody tell how to make only the part of plot in static control
be drawn? I just donnot want to caculate if each point/curve is in or
out of the static control.
Any help would be appreciated!
Bruce