Pelles C forum
C language => Windows questions => Topic started 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)
-
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
-
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.
-
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
-
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.