How to add horizontal separator in dialog?

Started by Snowman, May 20, 2016, 11:26:57 AM

Previous topic - Next topic

Snowman

Hello, I don't know how to add horizontal separators in my dialogs. Microsoft calls these "etched separator lines":



JohnF

MF_SEPARATOR
Draws a horizontal dividing line. This flag is used only in a drop-down menu, submenu, or shortcut menu. The line cannot be grayed, disabled, or highlighted. The lpNewItem and uIDNewItem parameters are ignored.


Use AppendMenu API

John

Snowman

Hello John, unfortunately that is not what I'm looking for: you have posted about menu item separators.

I am looking for separators in a dialog, as seen in the "Object Properties" screenshot posted above.

JohnF

Sorry,

I found this on MSDN

Developers: You can implement a separator with an etched rectangle with a height of one.

Here

John

Scripter

Quote from: Snowman on May 21, 2016, 02:16:15 PM
Hello John, unfortunately that is not what I'm looking for: you have posted about menu item separators.

I am looking for separators in a dialog, as seen in the "Object Properties" screenshot posted above.

In the dialog editor select a "group box", give it no title, select the client edge attribute and set it's height to 1.