1,105,340 Community Members

MFC - Drawing points on Eclipse

Member Avatar
Z33shan
Light Poster
26 posts since Sep 2011
Reputation Points: 1 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

Hello :)

i'm looking for a proper way of drawing points in MFC. or Drawing those point on a Drawn Eclipse. then i actually have to join them. i had been working on .NET, so i'm less fimiliar to visual C++ 6.0, but i have to use it for this.

i can draw eclipse like:

.
.
.
void CTesttView::OnDraw(CDC* pDC)
{
	CTesttDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
        pDC->Eclipse(100,100,500,500);
}
.
.
.

but now, how can i draw points on it?
since i have to join those points using lines later, how can i keep a track of points, to join them later..?

i might not be perfect in explaining..
kindly guide me, how to take a start..

Thanks :)

Member Avatar
DeanMSands3
Posting Whiz
358 posts since Jan 2012
Reputation Points: 57 [?]
Q&As Helped to Solve: 49 [?]
Skill Endorsements: 2 [?]
 
0
 

Maybe you mean ellipse?
http://msdn.microsoft.com/en-us/library/6hkxb3kd(v=vs.80).aspx

Member Avatar
Ancient Dragon
Achieved Level 70
27,573 posts since Aug 2005
Reputation Points: 5,231 [?]
Q&As Helped to Solve: 3,028 [?]
Skill Endorsements: 115 [?]
Team Colleague
Featured
Sponsor
 
0
 

This Scribble tutorial will show you how to draw lines with MFC

Member Avatar
Z33shan
Light Poster
26 posts since Sep 2011
Reputation Points: 1 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks DeanMSands3, & Ancient Dragon :)

i meant, i actually have to draw around 5000 points, surrounding the drawn eclipse.
i.e, i have to draw around 5000 points in circular way, one after the other. then i have to join them using line. regardless of the joining, i want to know, how can i Draw Points, in circular fashion.

thanks :)

Member Avatar
Ancient Dragon
Achieved Level 70
27,573 posts since Aug 2005
Reputation Points: 5,231 [?]
Q&As Helped to Solve: 3,028 [?]
Skill Endorsements: 115 [?]
Team Colleague
Featured
Sponsor
 
0
 

The tutorial I posted will show you how to connect the points.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: