5 - 10
// 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 );
}
Содержание PadCom TT1500
Страница 1: ... PadCom Point of Sale Terminal Control Library U s e r s G u i d e ...
Страница 88: ...4 2 ...
Страница 129: ......
Страница 130: ......
Страница 131: ......
Страница 132: ... PadCom UG Rev A 4619 Jordan Road P O Box 187 Skaneateles Falls New York 13153 0187 ...