Pelles C forum

C language => Windows questions => Topic started by: Snowman on May 20, 2016, 11:26:57 AM

Title: How to add horizontal separator in dialog?
Post by: Snowman on May 20, 2016, 11:26:57 AM
Hello, I don't know how to add horizontal separators in my dialogs. Microsoft calls these "etched separator lines":

(https://i-msdn.sec.s-msft.com/dynimg/IC3056.jpg)
Title: Re: How to add horizontal separator in dialog?
Post by: JohnF on May 20, 2016, 01:50:27 PM
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
Title: Re: How to add horizontal separator in dialog?
Post by: 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.
Title: Re: How to add horizontal separator in dialog?
Post by: JohnF on May 21, 2016, 02:41:25 PM
Sorry,

I found this on MSDN

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

Here (https://msdn.microsoft.com/en-us/library/windows/desktop/dn742405(v=vs.85).aspx)

John
Title: Re: How to add horizontal separator in dialog?
Post by: Scripter on June 03, 2016, 09:09:24 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.