Casio Cassiopeia PA-2400 User Manual
Page 14
![background image](/manuals/65135/14/background.png)
14
default:
MessageBox( hWnd, TEXT( "Function call Failed!") , TEXT( "MessageBox"),
MB_OK); break;
}
//
TerminateThread( h,0); // Close because thread is no longer required.
//
ExitThread( 0L);
CloseHandle( h);
return 0;
case WM_CLOSE:
sndPlaySound(TEXT("Close"), SND_NODEFAULT | SND_ASYNC);
DestroyWindow(hWnd);
return 0;
case WM_DESTROY:
PostQuitMessage(0);
return 0;
default:
return (DefWindowProc(hWnd, message, uParam, lParam));
}
return (0);
}
VOID ioProc()
{
int ret;
//
ret=iobox_chk( INFINITE);
// Wait for infinite
ret=iobox_chk( 5*1000);
// Wait for 5 seconds
PostMessage( hWnd, WM_USER, ret, 0L);
}
// End of Hello Windows CE program.