Solved

draw arrow

Posted on 2009-04-13
1
841 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

746 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

10 Experts available now in Live!

Get 1:1 Help Now