case WM_COMMAND:
{
  switch (SHORT1FROMMP (First_parameter)) 
  {
    case ID_OK_BUTTON:
      WinDismissDlg (Window, 1);
    return 0;

    case ID_CANCEL_BUTTON:
      WinDismissDlg (Window, 0);
    return 0;
  }
}
return 0;