Solved

How to draw concentric circle?

Posted on 2002-04-28
3
2,373 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
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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand macro to include alternate header placement and naming 5 71
mixString challenge 36 122
Strange date stored 22 123
Fibonacci challenge 11 122
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

773 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