Solved

draw arrow

Posted on 2009-04-13
1
844 Views
Last Modified: 2013-12-14
Hi,
I want to draw an arrow from x1.y1 o x2.y2
It is very easy to do dc->LineTo, but how do I add the "triangle" at the end?
0
Comment
Question by:VapiSoft
1 Comment
 
LVL 6

Accepted Solution

by:
obrienslalom earned 500 total points
ID: 24129427
There are several ways to do this but my suggestion is to use CreatePolygonRgn and then pass the CRgn handle to FillRgn.  You probably should encapsulate this so that your arrows are always consistent when you calculate them.  
Also you can look at the sample code here: http://www.codeproject.com/KB/GDI/arrows.aspx
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

803 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