Hand Held Products PadCom TT1500 User Manual page 95

Point-of-sale terminal control library
Table of Contents

Advertisement

// Setup DC to perform scaling based on client rect
hDC = GetDC( hWnd );
GetClientRect( hWnd, &Rect );
SetMapMode( hDC, MM_ANISOTROPIC );
SetWindowExt( hDC, padWidth(), padHeight() );
SetViewportExt( hDC, Rect.right, Rect.bottom );
// If not first point of new stroke, draw stroke
if( p )
{
MoveTo( hDC, padOldX(), padOldY() );
LineTo( hDC, x, y );
}
ReleaseDC( hWnd, hDC );
}
}
return 1;
}
case WM_DESTROY:
{
// Always turn things off!
padStop();
padOff();
PostQuitMessage( 0 );
break;
}
case WM_CHAR:
{
DestroyWindow( hWnd );
break;
}
default:
5 - 7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents