DC 到底是什么东西?在 DC 上画线,为什么取的是frame 的 DC ,还能画在 view 上。不是这一部分线条要被 view 类客户区挡住吗?该怎么解决

DC 到底是什么东西?在 DC 上画线,为什么取的是frame 的 DC ,还能画在 view 上。不是这一部分线条要被 view 类客户区挡住吗?
DC   到底是什么东西?在   DC   上画线,为什么取的是frame   的   DC   ,还能画在   view   上。不是这一部分线条要被   view   类客户区挡住吗?

------解决方案--------------------
Device Contexts
A device context is a structure that defines a set of graphic objects and their associated attributes, as well as the graphic modes that affect output. The graphic objects include a pen for line drawing, a brush for painting and filling, a bitmap for copying or scrolling parts of the screen, a palette for defining the set of available colors, a region for clipping and other operations, and a path for painting and drawing operations. The remainder of this section is divided into the following three areas.


------解决方案--------------------
设备上下文
------解决方案--------------------
设备场景就是用来连接到view上的。这样线就画出来了
------解决方案--------------------
view 类客户区挡住 frame?

呵呵

文档/视图结构中的框架窗口类

框架窗口的作用
1.为视图提供可视的边框,包括标题条...
2.响应标准的窗口消息

------解决方案--------------------
可以说view类继承于Frame框架类,显然会覆盖的
------解决方案--------------------
如果View刷新了,当然会覆盖。
------解决方案--------------------
你在OnPaint里画的吗?那样不会覆盖