Solved

draw arrow

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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.

827 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