use the multithread. please notify. the resouce of the window just can be access by only one thread. so you must built daemon thread to liston all draw event and do the drawing action as these event. every draw thread just do send event to the daemon thread. this disign can act for multi pen draw on the windows. hope you can master it. your's jansen.
具体你可以参看autocad的资料~~~
如果是分视, 每个View的OnDraw函数处理相应的图形输出就可以了...
如果是多个Dialog, 每个Dialog的OnPint能够相应输出, 不过最好你的Dialog是无模式对话框...
the resouce of the window just can be
access by only one thread.
so you must built daemon thread to liston
all draw event and do the drawing action as
these event.
every draw thread just do send event to the
daemon thread.
this disign can act for multi pen draw on the
windows. hope you can master it.
your's jansen.
,每个子视图里编写各自的OnDraw()函数就行了。微软控件Mschart.ocx可以帮忙