Solved

How to draw concentric circle?

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

688 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