ax_+MENU_HEIGHT, TRUE); IDM_NEW: (); (hWnd, NULL, FALSE);; IDM_BESTRESULTS: (hInst, (LPCTSTR) IDD_BESTRESULTSBOX, hWnd,
(DLGPROC) BestResults);;: DefWindowProc (hWnd, message, wParam, lParam);}; WM_PAINT: (hWnd, &ps);();(l.posx=0;l.posx<max_x;l.posx++)(l.posy=0;l.posy<max_y;l.posy++).DrawState();(hWnd, & Ps);;
# ifdef LOGGING (log);
# endif (0);;: DefWindowProc (hWnd, message, wParam, lParam);} 0;} CALLBACK About (HWND hDlg, UINT message, WPARAM, LPARAM lParam)
{switch (message)
{case WM_INITDIALOG: TRUE; WM_COMMAND: (LOWORD (wParam) == IDOK | | LOWORD (wParam) == IDCANCEL)
{EndDialog (hDlg, LOWORD (wParam)); TRUE;};} CALLBACK BestResults (HWND hDlg, UINT message, wParam, LPARAM lParam)
{static char szVal [50]; int i, h, m1, m2, s1, s2; (message)
{case WM_INITDIALOG: (i=0; i <3; i + +)
{h=leaders [i]. time;=h% 60; h /=60;=s2% 10; s2 /=10;=h% 60; h /=60;=m2% 10; m2 /=10; (szVal, sizeof (szVal)) << leaders [i]. name << ends;; (hDlg, IDC_EDIT1 + i, WM_SETTEXT,
(WPARAM) 0, (LPARAM) szVal); (szVal, sizeof (szVal)) << leaders [i]. score <<"
"<<h<<«:»<<m2<<m1<<«:»<<s2<<s1<< ends; (hDlg, IDC_EDIT4 + i, WM_SETTEXT,
(WPARAM) 0, (LPARAM) szVal);} TRUE; WM_COMMAND: (LOWORD (wParam) == IDOK | | LOWORD (wParam) == IDCANCEL)
{EndDialog (hDlg, LOWORD (wParam)); TRUE;};} FALSE;} CALLBACK GetName (HWND hDlg, UINT message, wParam, LPARAM lParam)
{static char szVal [30]; (message)
{case WM_INITDIALOG: TRUE; WM_COMMAND: (LOWORD (wParam) == IDOK)
{SendDlgItemMessage (hDlg, IDC_EDIT1, WM_GETTEXT,
(WPARAM) sizeof (szVal),
(LPARAM) szVal); (leaders [gametype]. name, sizeof (leaders [gametype]. name)) <<<< ends;} (LOWORD (wParam) == IDOK | | LOWORD (wParam) == IDCANCEL)
{EndDialog (hDlg, LOWORD (wParam)); TRUE;};} FALSE;} ALines (int e)
{int y_old=y_lines; (y_lines)
{return (click_ball.State () == 0 | | click_ball.State () == 1);} xk1 ()
{return (click_ball.State () == 3);} xk2 ()
{return (click_ball.State () == 4);} x0 ()
{return FindPath (ball, click_ball);} x1 ()
{return path.empty ();} x2 ()
{return CheckLines (ball);} x3 ()
{itr=explode_list.begin (); (itr-> State () == 0) ;/ / N3} x4 ()
{itr=appear_list.begin (); (itr-> State () == 3) ;/ / N1} FindPath (const cell & from, const cell & in) {{pred; mark;} [MAX_MAP_X] [MAX_MAP_Y]; k, l; :: queue q; (int i=0; i