Changeset 1395 for trunk/dll/notify.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/notify.c

    r1394 r1395  
    1616  10 Dec 08 SHL Integrate exception handler support
    1717  11 Jan 09 GKY Replace font names in the string file with global set at compile in init.c
     18  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
     19  07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error
    1820
    1921***********************************************************************/
     
    212214                           x, y, cx, cy, hwndP, HWND_TOP, id++, NULL, NULL);
    213215    if (!hwndP)
    214       Win_Error2(hwndP, hwndP, pszSrcFile, __LINE__, IDS_WINCREATEWINDOW);
     216      Win_Error(hwndP, hwndP, pszSrcFile, __LINE__,
     217                PCSZ_WINCREATEWINDOW);
    215218
    216219    if (p != str)
     
    268271      strcat(errortext, GetPString(IDS_DISKLOCKEDTEXT));
    269272  }
    270   DosBeep(250, 10);
    271   DosBeep(500, 10);
    272   DosBeep(250, 10);
    273   DosBeep(500, 10);
     273  if (!fErrorBeepOff) {
     274    DosBeep(250, 10);
     275    DosBeep(500, 10);
     276    DosBeep(250, 10);
     277    DosBeep(500, 10);
     278  }
    274279  Notify(errortext);
    275280}
Note: See TracChangeset for help on using the changeset viewer.