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. Shading in regions of a graph

Shading in regions of a graph

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestiongraphicsdata-structuresjson
2 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.
  • T Offline
    T Offline
    TheDelChop
    wrote on last edited by
    #1

    Hello, I am currently working on a simple program with the Windows API that will be drawing polygons in a dialog box to provide the user with a guide to the values that are being graphed over them. My question is this: I would like to be able to draw two shapes (bascially using the LineTo function and connecting all the lines) and then shade in the area between them. To give an example, think of a bullseye, I would like a large ring with a smaller ring inside it, with the larger ring colored in. Anyone have any suggestions on where to start? I am fairly new to the drawing functions in Windows. Thanks guys, Joe

    M 1 Reply Last reply
    0
    • T TheDelChop

      Hello, I am currently working on a simple program with the Windows API that will be drawing polygons in a dialog box to provide the user with a guide to the values that are being graphed over them. My question is this: I would like to be able to draw two shapes (bascially using the LineTo function and connecting all the lines) and then shade in the area between them. To give an example, think of a bullseye, I would like a large ring with a smaller ring inside it, with the larger ring colored in. Anyone have any suggestions on where to start? I am fairly new to the drawing functions in Windows. Thanks guys, Joe

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Check out this article[^], the sample app uses a few GDI calls to draw its progress indicator: clickety[^]

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

      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