Search code examples
cuser-interfacewinapiseparator

How do I draw separators?


I am programming in C, using the Windows API, and would like to know how I could draw separators. I would appreciate a code example.

Edit: Here's an illustration.

alt text
(source: microsoft.com)


Solution

  • Use a static control/window with the SS_ETCHEDHORZ style (This is what explorer does and should give you the most accurate rendering when it comes to Visual Styles)