Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to draw concentric circle?

Posted on 2002-04-28
3
Medium Priority
?
2,385 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

618 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