Casio Cassiopeia PA-2400 User Manual Page 13

  • Download
  • Add to my manuals
  • Print
  • Page
    / 56
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 12
13
{
HDC hdc;
PAINTSTRUCT ps;
RECT rect;
DWORD ThreadID;
switch (message)
{
case WM_CREATE:
sndPlaySound(TEXT("OpenProg"), SND_NODEFAULT | SND_ASYNC);
hWndCB = CommandBar_Create(hInst, hWnd, 1);
CommandBar_AddAdornments( hWndCB, 0L, 0L);
return 0;
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
GetClientRect(hWnd, &rect);
rect.top += CommandBar_Height(hWndCB);
DrawText(hdc, TEXT("Hello Windows CE!"), -1, &rect,
DT_SINGLELINE | DT_CENTER | DT_VCENTER);
EndPaint(hWnd, &ps);
return 0;
case WM_LBUTTONDOWN:
h = CreateThread(NULL, 0, ( LPTHREAD_START_ROUTINE)ioProc, NULL, 0,
( LPDWORD)&ThreadID); return 0;
case WM_USER:
switch( ( int)uParam) {
case 0:
MessageBox( hWnd, TEXT( "Connected!") , TEXT( "MessageBox"), MB_OK);
break;
case 1:
MessageBox( hWnd, TEXT( "Time Out!") , TEXT( "MessageBox"),
MB_OK); break;
case -1:
MessageBox( hWnd, TEXT( "Other program is using!") ,
TEXT( "MessageBox"), MB_OK); break;
Page view 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 55 56

Comments to this Manuals

No comments