Hand Held Products PadCom TT1500 User Manual page 99

Point-of-sale terminal control library
Table of Contents

Advertisement

break;
}
case WM_PADNOTIFY:
{
// Check for any new data received
while( padUpdate() )
{
int x, y, p;
// If pen is down, get pen position info and draw it
if( padGet( &x, &y, &p ) )
{
RECT Rect;
HDC hDC;
// Setup DC to perform scaling based on client rect
hDC = GetDC( hWnd );
GetClientRect( hWnd, &Rect );
SetMapMode( hDC, MM_ANISOTROPIC );
SetWindowExtEx( hDC, padWidth(), padHeight(), NULL );
SetViewportExtEx( hDC, Rect.right, Rect.bottom, NULL );
// If not first point of new stroke, draw stroke
if( p )
{
MoveToEx( hDC, padOldX(), padOldY(), NULL );
LineTo( hDC, x, y );
}
ReleaseDC( hWnd, hDC );
}
}
return 1;
}
case WM_DESTROY:
5 - 11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents