|
AddPointsPenData
- 0 2.0
Adds a set of data points to the pen data object.
HPENDATA AddPointsPenData( HPENDATA hpendata, LPPOINT lppt, LPVOID lpvOem, LPSTROKEINFO lpsiNew )
Parameters
hpendata
Handle to a pen data object.
lppt
Address of an array of POINT structures containing new data points to be added to the pen data. Zero
points can be added to force a change of pen state or to set a new pen state.
lpvOem
OEM data. Can be set to NULL if there is no additional OEM data. The pen data
header determines how the OEM data is interpreted.
lpsiNew
Address of a STROKEINFO structure for new stroke data. Contains the count of points from lppt to be added.
Return Value
Returns a handle to the pen data object. Normally, this is the same handle
originally passed to the function. NULL is returned on error. The size of hpendata is limited to 64K.
Comments
A call to GetPenHwEventData or GetPenInput gets the lpsiNew and lpvOem values. A subsequent call to AddPointsPenData appends the set of points to the HPENDATA memory block identified by hpendata. The lpsiNew argument points to a STROKEINFO structure that describes the new points, and lpvOem points to the corresponding OEM data (if any) to be added along with the
points.
The STROKEINFO structure indicates the pen state of the new points that is, whether the pen is up or down. To avoid unnecessarily creating new
strokes in the HPENDATA block, AddPointsPenData compares the pen state of the new points with the pen state of the last
stroke in the HPENDATA block. If the new points have the same pen state as the last stroke, the
function appends the points to the last stroke and updates the last STROKEINFO structure within the HPENDATA block. If the new points have a different pen state, AddPointsPenData appends them to the HPENDATA block as a new stroke, along with the STROKEINFO structure pointed to by lpsiNew.
AddPointsPenData does not scale the data points. The calling application must ensure that the
added data points have the same scale as the rest of the HPENDATA block.
See Also
CreatePenData, GetPenHwEventData
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|