Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Horizontal Line?

Horizontal Line?

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    moobob
    wrote on last edited by
    #1

    How do I create a horizontal line on a dialog box? Much like the horizontal line you can add to a menu. I've tried using a group box without caption text with a width of 1. The result is each end has one pixels worth of a corner which is not desirable. Thanks in advance, Bob

    P 1 Reply Last reply
    0
    • M moobob

      How do I create a horizontal line on a dialog box? Much like the horizontal line you can add to a menu. I've tried using a group box without caption text with a width of 1. The result is each end has one pixels worth of a corner which is not desirable. Thanks in advance, Bob

      P Offline
      P Offline
      Paul M Watt
      wrote on last edited by
      #2

      Use the picture control instead, and set its type to frame. BTW, the picture control is actually a static control with the SS_ETCHEDHORZ style set.


      Build a man a fire, and he will be warm for a day
      Light a man on fire, and he will be warm for the rest of his life!

      M 1 Reply Last reply
      0
      • P Paul M Watt

        Use the picture control instead, and set its type to frame. BTW, the picture control is actually a static control with the SS_ETCHEDHORZ style set.


        Build a man a fire, and he will be warm for a day
        Light a man on fire, and he will be warm for the rest of his life!

        M Offline
        M Offline
        moobob
        wrote on last edited by
        #3

        Just what I needed, thanks

        PJ ArendsP 1 Reply Last reply
        0
        • M moobob

          Just what I needed, thanks

          PJ ArendsP Offline
          PJ ArendsP Offline
          PJ Arends
          wrote on last edited by
          #4

          check out http://www.codeproject.com/staticctrl/rotated_bevel.asp. It explains a pitfall with using a static control this way and offers a work around. (and extra features) --- CPUA 0x5041 Sonork 100.11743 Chicken Little If a man is standing in the middle of the forest speaking and there is no woman around to hear him...is he still wrong?

          Within you lies the power for good; Use it!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups