Hand Held Products PadCom TT1500 User Manual page 98

Point-of-sale terminal control library
Table of Contents

Advertisement

// Show main window
ShowWindow( theWnd, cmdShow );
UpdateWindow( theWnd );
// Main message loop
while( GetMessage( (LPMSG)&msg, NULL, 0, 0 ) )
{
TranslateMessage( (LPMSG)&msg );
DispatchMessage( (LPMSG)&msg );
}
return 0;
}
// ---------------------------------------------------------------------------
// WndProc
// ---------------------------------------------------------------------------
LONG CALLBACK WndProc(
HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam
)
{
switch( Msg )
{
case WM_CREATE:
{
// Turn on the writing pad
if( padOn() )
{
// Start recording...
padRecord( hWnd, WM_PADNOTIFY, 0,0 );
}
else
{
// Error
MessageBox( hWnd, "Unable to find writing pad", "TESTAPP", MB_OK );
PostQuitMessage( 1 );
}
5 - 10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents