Solved

How to draw concentric circle?

Posted on 2002-04-28
3
2,376 Views
Last Modified: 2013-11-20
I want to draw concentric circle with hatching inside
the ring structure. I mean to say,
I can draw concentric circle with hatching inside the circle but i want hatching only the area between outer circle and inner circle not the area occured by both circle.
 waiting for reply
please answer it AEAP.
thanking you
0
Comment
Question by:unisoftsystems
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
migel earned 50 total points
ID: 6975211
Hi!
You can create region from these two circles (ellipses) and fill it by hatched brush. For example:

{
/* assume dc is the CDC class object where you want to
display your image.
*/
CRgn rgnOne;
CRgn rgnTwo;
DRgn rgnRes;
rgnOne.CreateEllipticRgn(0, 0, 100, 100);
rgnTwo.CreateEllipticRgn(25, 25, 75, 75);
rgnRes.CombineRgn(&rgnOne, &rgnTwo, RGN_DIFF );
CBrush brHatch(HS_BDIAGONAL, RGB(255,0,0));
dc.FillRgn(&rgnRes, &brHatch);
}
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
unable to delete all specified values regedit 38 726
Smart Camera scanning and reading information 3 121
zeroMAx challenge 20 126
mapAB Challlenge 35 173
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question