Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够使用原生 Windows API ( LineTo) 绘制文件行,就像 TreeView 用来将节点相互连接的那个。但是使用RS_DOT创建画笔 ( ::CreatePen(PS_DOT, 0, RGB(200, 200, 200))) 会产生不同类型的线条。有谁知道我怎么画这样一条线?
LineTo
RS_DOT
::CreatePen(PS_DOT, 0, RGB(200, 200, 200))
创建真正的虚线笔
LOGBRUSH LogBrush; LogBrush.lbColor = c_colorGridLine; LogBrush.lbStyle = PS_SOLID; penDotted.CreatePen( PS_COSMETIC | PS_ALTERNATE , 1, &LogBrush, 0, NULL );