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

    r1394 r1395  
    1717  26 Nov 07 GKY Add "Save as" menu option to editor
    1818  29 Feb 08 GKY Refactor global command line variables to notebook.h
     19  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
     20  07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error
    1921
    2022***********************************************************************/
     
    362364                         0,
    363365                         0, 0, hwnd, HWND_TOP, MLE_MLE, MPVOID, MPVOID)) {
    364       Win_Error2(hwnd, hwnd, pszSrcFile, __LINE__, IDS_WINCREATEWINDOW);
     366      Win_Error(hwnd, hwnd, pszSrcFile, __LINE__,
     367                PCSZ_WINCREATEWINDOW);
    365368    }
    366369    else {
     
    701704  case WM_COMMAND:
    702705    if (vw->busy && SHORT1FROMMP(mp1) != MLE_QUIT) {
    703       DosBeep(50, 100);
     706      if (!fAlertBeepOff)
     707        DosBeep(50, 100);
    704708      return 0;
    705709    }
     
    807811    case MLE_TOGGLEREADONLY:
    808812      if (vw->busy || vw->hex == 1) {
    809         DosBeep(50, 100);
     813        if (!fAlertBeepOff)
     814          DosBeep(50, 100);
    810815      }
    811816      else {
     
    10881093        sip.title = GetPString(IDS_NVLINEJUMPTITLETEXT);
    10891094        numlines = MLEnumlines(hwndMLE);
    1090         if (!numlines)
    1091           DosBeep(50, 100);
     1095        if (!numlines)
     1096          if (!fAlertBeepOff)
     1097            DosBeep(50, 100);
    10921098        else {
    10931099          sprintf(ss,
Note: See TracChangeset for help on using the changeset viewer.