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. DirectX

DirectX

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsgame-devhelp
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.
  • S Offline
    S Offline
    Selevercin
    wrote on last edited by
    #1

    Hi, I simply want to be able to draw a verticle line (1 pixel wide) of a desired length (ex. 134 pixels tall) from the bottom of my screen up. Specifing color would also be nice :) Thanks, ~ Selevercin If you have a problem with my spelling, just remember that's not my fault. I [as well as everyone else who learned to spell after 1976] blame it on Robert A. Kolpek for U.S. Patent 4,136,395.

    S M 2 Replies Last reply
    0
    • S Selevercin

      Hi, I simply want to be able to draw a verticle line (1 pixel wide) of a desired length (ex. 134 pixels tall) from the bottom of my screen up. Specifing color would also be nice :) Thanks, ~ Selevercin If you have a problem with my spelling, just remember that's not my fault. I [as well as everyone else who learned to spell after 1976] blame it on Robert A. Kolpek for U.S. Patent 4,136,395.

      S Offline
      S Offline
      sultan_of_6string
      wrote on last edited by
      #2

      You want to do this with DirectDraw? Sorry, but that still isn't simple!

      1 Reply Last reply
      0
      • S Selevercin

        Hi, I simply want to be able to draw a verticle line (1 pixel wide) of a desired length (ex. 134 pixels tall) from the bottom of my screen up. Specifing color would also be nice :) Thanks, ~ Selevercin If you have a problem with my spelling, just remember that's not my fault. I [as well as everyone else who learned to spell after 1976] blame it on Robert A. Kolpek for U.S. Patent 4,136,395.

        M Offline
        M Offline
        Mike Nordell
        wrote on last edited by
        #3

        Get the DC from the surface (GetDC) and the use plain GDI functions as usual.

        S 1 Reply Last reply
        0
        • M Mike Nordell

          Get the DC from the surface (GetDC) and the use plain GDI functions as usual.

          S Offline
          S Offline
          Selevercin
          wrote on last edited by
          #4

          Sorry, but I'm new to this. How do you "use the plain GDI functions as usual"? Is there a DrawLine() Function? Thanks, ~ Selevercin If you have a problem with my spelling, just remember that's not my fault. I [as well as everyone else who learned to spell after 1976] blame it on Robert A. Kolpek for U.S. Patent 4,136,395.

          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