[英]How can I make a dotted line separator in an MFC dialog?
Is there a control for this anywhere? 哪里有针对此的控件? Or a way to use another control to make it look like a separator?
还是使用另一个控件使其看起来像分隔符的方法?
Thanks 谢谢
You want to use the image control and change the color property to 'Etched'. 您要使用图像控件并将color属性更改为“ Etched”。 Resize the control so it just looks like single line.
调整控件的大小,使其看起来像单行。
Override the OnPaint function of your dialog and have it draw the line. 覆盖对话框的OnPaint函数,并使其绘制线条。 Ordinarily the OnPaint for a dialog doesn't do anything, as all the content is in controls which paint themselves.
通常,对话框的OnPaint不会执行任何操作,因为所有内容都在绘制自身的控件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.