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

Recommended Answers

All 4 Replies

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

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.