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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to draw a line in a dialog box ?

How to draw a line in a dialog box ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 4 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.
  • D Offline
    D Offline
    Deepak Samuel
    wrote on last edited by
    #1

    How to draw a line (horizontal&vertical) in a dialog box ? Thanks, Deepak Samuel.

    D M 2 Replies Last reply
    0
    • D Deepak Samuel

      How to draw a line (horizontal&vertical) in a dialog box ? Thanks, Deepak Samuel.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      For a line to be both, horizontal and vertical, it would have to be diagonal, right? Otherwise, I would have just suggested using a static control either 1 pixel wide or 1 pixel high.


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      M 1 Reply Last reply
      0
      • D David Crow

        For a line to be both, horizontal and vertical, it would have to be diagonal, right? Otherwise, I would have just suggested using a static control either 1 pixel wide or 1 pixel high.


        "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

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

        DavidCrow wrote: For a line to be both, horizontal and vertical, it would have to be diagonal, right? :laugh:


        Maximilien Lincourt Your Head A Splode - Strong Bad

        P 1 Reply Last reply
        0
        • D Deepak Samuel

          How to draw a line (horizontal&vertical) in a dialog box ? Thanks, Deepak Samuel.

          M Offline
          M Offline
          Maximilien
          wrote on last edited by
          #4

          have a look at WM_PAINT and CDC.


          Maximilien Lincourt Your Head A Splode - Strong Bad

          1 Reply Last reply
          0
          • M Maximilien

            DavidCrow wrote: For a line to be both, horizontal and vertical, it would have to be diagonal, right? :laugh:


            Maximilien Lincourt Your Head A Splode - Strong Bad

            P Offline
            P Offline
            Prakash Nadar
            wrote on last edited by
            #5

            hmmm, how about a corner of a square, there the line is both horizontal and vertical.


            MSN Messenger. prakashnadar@msn.com

            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