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. Why CDC::LineTo(pt) draw a line not include pt

Why CDC::LineTo(pt) draw a line not include pt

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 2 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.
  • F Offline
    F Offline
    fitatc
    wrote on last edited by
    #1

    By MSDN, that CDC::LineTo(pt) will draw a line to, but not include the specified "pt". Why is that? any special purpose?:confused:

    L 1 Reply Last reply
    0
    • F fitatc

      By MSDN, that CDC::LineTo(pt) will draw a line to, but not include the specified "pt". Why is that? any special purpose?:confused:

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Because that is the way Microsoft designed it; maybe you should ask them. In many cases the next drawing command will start from the x,y point of the previous one, so I assume this is for efficiency.

      F 1 Reply Last reply
      0
      • L Lost User

        Because that is the way Microsoft designed it; maybe you should ask them. In many cases the next drawing command will start from the x,y point of the previous one, so I assume this is for efficiency.

        F Offline
        F Offline
        fitatc
        wrote on last edited by
        #3

        thanks, you said ask microsoft. do you mean I should post this to MSDN forum? or just mail to someone?

        L 1 Reply Last reply
        0
        • F fitatc

          thanks, you said ask microsoft. do you mean I should post this to MSDN forum? or just mail to someone?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          fitatc wrote:

          you said ask microsoft. do you mean I should post this to MSDN forum? or just mail to someone?

          Try one of the Microsoft forums. How important is it to you to know?

          F 1 Reply Last reply
          0
          • L Lost User

            fitatc wrote:

            you said ask microsoft. do you mean I should post this to MSDN forum? or just mail to someone?

            Try one of the Microsoft forums. How important is it to you to know?

            F Offline
            F Offline
            fitatc
            wrote on last edited by
            #5

            Thank you very much.

            Richard MacCutchan wrote:

            Try one of the Microsoft forums. How important is it to you to know?

            To my work, not a bit. To mySelf, I am kind of serious man, ;P

            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