简体   繁体   English

如何在MFC对话框中制作虚线分隔符?

[英]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.

相关问题 如何在MFC对话框的静态区域中绘制图像? - How can I draw an image in a static area in an MFC dialog? 如何在MFC对话框上显示网格线? (不是在设计中,而是在运行对话框时) - How to show Grid Line on MFC dialog? (not in design but while running dialog) 如何在另一个线程中关闭MFC Modal对话框并获得对话框的返回值? - How do I close a MFC Modal Dialog in another thread and can get the dialog return value? 如何从命令行阻止 MFC 应用程序? - How can I get an MFC application to block from the command line? 如何在ListControl MFC中使用多行项目? - How can I have a multi-line item in a ListControl MFC? 如何创建可以在GUI对话模式下或通过命令行启动的C ++ MFC程序? - How to create a C++ MFC program that can boot in both GUI Dialog mode or through the command line? 如何在MFC中启动对话框? - How Do I Launch a Dialog in MFC? 在MFC中,如何有一个按钮可以连续创建多个对话框实例而不关闭它们? - In MFC, How can I have a button to create several dialog instances successively without closing them? 如何在 C++ 中停止 Windows 服务? (MFC 对话框应用程序) - How can i stop the Windows service in C++ ? (MFC Dialog app) 如何调试MFC中不断丢失的焦点窗口(例如,对话框)? - How can I debug a constantly losing focus window (dialog, for instance) in MFC?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM