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