Solved

How do i select color of my own to draw an ellipse.

Posted on 2000-04-20
1
194 Views
Last Modified: 2013-11-20
HI,
 I have the following situaltion
CClient Cilent;
Client.Ellipse(X1,Y1,X2,Y2);

I want to fill this Ellipse with some color. I read the help which says select the brush and a pen . Let me know how do I do it.
Thanks in advance.
0
Comment
Question by:mkjoshi
1 Comment
 
LVL 1

Accepted Solution

by:
jianliuer earned 5 total points
Comment Utility
You can do like this:

CClientDC Client(this);
CBrush brush(yourClr);
CBrush* pOldBrush = (CBursh*)(Client.SelectObject(&brush));
Client.Ellipse(X1,Y1,X2,Y2);
Client.SelectObject(pOldBrush);
brush.DeleteObject();


Good Luck!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now