We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,608 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

MFC - Drawing points on Eclipse

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 :)

3
Contributors
4
Replies
6 Hours
Discussion Span
1 Year Ago
Last Updated
5
Views
Z33shan
Light Poster
26 posts since Sep 2011
Reputation Points: 11
Solved Threads: 1
Skill Endorsements: 0

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

DeanMSands3
Posting Whiz
319 posts since Jan 2012
Reputation Points: 80
Solved Threads: 44
Skill Endorsements: 1

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

Ancient Dragon
Achieved Level 70
Team Colleague
32,275 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,591
Skill Endorsements: 70

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 :)

Z33shan
Light Poster
26 posts since Sep 2011
Reputation Points: 11
Solved Threads: 1
Skill Endorsements: 0

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

Ancient Dragon
Achieved Level 70
Team Colleague
32,275 posts since Aug 2005
Reputation Points: 5,852
Solved Threads: 2,591
Skill Endorsements: 70

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0886 seconds using 3.16MB