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. ATL / WTL / STL
  4. how can I draw one Line in different windows?

how can I draw one Line in different windows?

Scheduled Pinned Locked Moved ATL / WTL / STL
question
2 Posts 2 Posters 2 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.
  • C Offline
    C Offline
    caiguosen
    wrote on last edited by
    #1

    I Want to draw one line in two windows, when I move my mouse in one window, I draw one line from top to bottom。 There is another window at the bottom of this window,I also want to draw one line in this window, if I Sendmessage to do it, It looks like draw two lines。

    L 1 Reply Last reply
    0
    • C caiguosen

      I Want to draw one line in two windows, when I move my mouse in one window, I draw one line from top to bottom。 There is another window at the bottom of this window,I also want to draw one line in this window, if I Sendmessage to do it, It looks like draw two lines。

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

      You need to give some more details about this, the normal way is to capture the details of the line(s) in your program somewhere (e.g. on mouse moves) and then render the actual details in your paint procedure(s), and each window should have its own paint handler.

      d@nish[^] has the answer.

      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