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

    r1394 r1395  
    7070                menu option is selected.
    7171  10 Dec 08 SHL Integrate exception handler support
     72  07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error
     73  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
    7274
    7375***********************************************************************/
     
    525527    remaining = (INT)WinSendMsg(hwnd, CM_REMOVERECORD, MPFROMP(&paiFirst), MPFROM2SHORT(usCnt, usFlags));
    526528    if (remaining == -1) {
    527       // Win_Error2(hwnd, HWND_DESKTOP, pszSrcFile, __LINE__,IDS_CMREMOVEERRTEXT);
    528       Win_Error(hwnd, HWND_DESKTOP, pszSrcFile, __LINE__,"CM_REMOVERECORD hwnd %x pai %p cnt %u", hwnd, paiFirst, usCnt);
     529      Win_Error(hwnd, HWND_DESKTOP, pszSrcFile, __LINE__,"CM_REMOVERECORD hwnd %x pai %p cnt %u",
     530                hwnd, paiFirst, usCnt);
    529531    }
    530532  }
     
    891893            goto ReTry;
    892894          }
    893         } while (tinfo);
    894         DosBeep(750, 50);               // wake up user
     895        } while (tinfo);
     896        if (!fAlertBeepOff)
     897          DosBeep(750, 50);             // wake up user
    895898        sprintf(errstr, GetPString(IDS_ARCERRORINFOTEXT),
    896899                arcname,
     
    33713374          LISTINFO *li;
    33723375
    3373           DosBeep(500, 100);            // fixme to know why beep?
     3376          //DosBeep(500, 100);          // fixme to know why beep?
    33743377          li = DoFileDrop(hwnd, dcd->arcname, FALSE, mp1, mp2);
    3375           DosBeep(50, 100);             // fixme to know why beep?
     3378          //DosBeep(50, 100);           // fixme to know why beep?
    33763379          CheckPmDrgLimit(((PCNRDRAGINFO)mp2)->pDragInfo);
    33773380          if (li) {
     
    38173820                                       HWND_TOP, (ULONG) ARC_CNR, NULL, NULL);
    38183821        if (!dcd->hwndCnr) {
    3819           Win_Error2(hwndClient, hwndClient, pszSrcFile, __LINE__,
    3820                      IDS_WINCREATEWINDOW);
     3822          Win_Error(hwndClient, hwndClient, pszSrcFile, __LINE__,
     3823                    PCSZ_WINCREATEWINDOW);
    38213824          PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID);
    38223825          free(dcd);
Note: See TracChangeset for help on using the changeset viewer.