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. Drawing on a dialog

Drawing on a dialog

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicsdata-structures
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.
  • R Offline
    R Offline
    Roger
    wrote on last edited by
    #1

    I am using moveto and lineto in order to draw a line graph on a dialog. My question is how do I erase the last line in order to redraw the new line with the variables controlling the line changes.

    A 1 Reply Last reply
    0
    • R Roger

      I am using moveto and lineto in order to draw a line graph on a dialog. My question is how do I erase the last line in order to redraw the new line with the variables controlling the line changes.

      A Offline
      A Offline
      Alex Gorev
      wrote on last edited by
      #2

      Hi, The easiest thing to do is to clear the background and redraw all the lines again. Regards, Alex Gorev, Dundas Software.

      R L 2 Replies Last reply
      0
      • A Alex Gorev

        Hi, The easiest thing to do is to clear the background and redraw all the lines again. Regards, Alex Gorev, Dundas Software.

        R Offline
        R Offline
        Roger
        wrote on last edited by
        #3

        How do you clear the background? Also, there are many edit boxes on the dialog that contain values associated with sliders, will these be cleared as well. I suppose I can just simple refill those values if they are. I am trying to find how to refresh the dialog to clear the lines, any help on this one?

        1 Reply Last reply
        0
        • A Alex Gorev

          Hi, The easiest thing to do is to clear the background and redraw all the lines again. Regards, Alex Gorev, Dundas Software.

          L Offline
          L Offline
          lauren
          wrote on last edited by
          #4

          and use LockWindowUpdate() on the control window first to stop the redraw being visible ... no?

          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