Changeset 1395 for trunk/dll/eas.c


Ignore:
Timestamp:
Feb 8, 2009, 2:48:16 AM (17 years ago)
Author:
Gregg Young
Message:

Allow user to turn off alert and/or error beeps in settings notebook. Ticket 341 Move repeated strings to PCSZs. Ticket 6 Add *DateFormat functions to format dates based on locale Ticket 28 Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error Ticket 6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/eas.c

    r1347 r1395  
    2222  01 Sep 07 GKY Use xDosSetPathInfo to fix case where FS3 buffer crosses 64k boundry
    2323  29 Feb 08 GKY Use xfree where appropriate
     24  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
    2425
    2526***********************************************************************/
     
    157158        else {
    158159          if (CheckEA(head, s)) {
    159             DosBeep(50, 100);
     160            if (!fAlertBeepOff)
     161              DosBeep(50, 100);
    160162            WinSetDlgItemText(hwnd, EAC_TEXT,
    161163                              GetPString(IDS_EANAMEEXISTSTEXT));
     
    164166          for (x = 0; *forbidden[x]; x++) {
    165167            if (!strcmp(forbidden[x], s)) {
    166               DosBeep(50, 100);
     168              if (!fAlertBeepOff)
     169                DosBeep(50, 100);
    167170              WinSetDlgItemText(hwnd, EAC_TEXT,
    168171                                GetPString(IDS_EANAMERESERVEDTEXT));
     
    177180            if (!strcmp(restypes[x].name, s)) {
    178181              if (type != restypes[x].type) {
    179                 DosBeep(50, 100);
     182                if (!fAlertBeepOff)
     183                  DosBeep(50, 100);
    180184                WinSetDlgItemText(hwnd, EAC_TEXT,
    181185                                  GetPString(IDS_EAWRONGTYPETEXT));
Note: See TracChangeset for help on using the changeset viewer.