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

    r1394 r1395  
    4545  01 Jan 09 GKY Add option to rescan tree container on eject of removable media
    4646  11 Jan 09 GKY Replace font names in the string file with global set at compile in init.c
     47  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
     48  07 Feb 09 GKY Move repeated strings to PCSZs.
    4749
    4850***********************************************************************/
     
    9496HWND Collector;
    9597DETAILS_SETTINGS dsDirCnrDefault;
     98BOOL fAlertBeepOff;
    9699BOOL fAutoAddAllDirs;
    97100BOOL fAutoAddDirs;
     
    111114BOOL fEjectFlpyScan;
    112115BOOL fEjectRemovableScan;
     116BOOL fErrorBeepOff;
    113117BOOL fExternalArcboxes;
    114118BOOL fExternalCollector;
     
    268272                         SBoxDlgProc, FM3ModHandle, ASEL_FRAME,
    269273                         (PVOID) & pat) || !pat || !pat->id || !*pat->id) {
     274            if (!fAlertBeepOff)
    270275            DosBeep(250, 100);          // Complain
    271276            WinCheckButton(hwnd, CFGA_DEFARC, FALSE);
     
    310315        HWND hwndFocus;
    311316
    312         strcpy(filename, "*.EXE");
     317        strcpy(filename, PCSZ_STARDOTEXE);
    313318        hwndFocus = WinQueryFocus(HWND_DESKTOP);
    314319        if (hwndFocus) {
     
    701706        HWND hwndFocus;
    702707
    703         strcpy(filename, "*.EXE");
     708        strcpy(filename, PCSZ_STARDOTEXE);
    704709        hwndFocus = WinQueryFocus(HWND_DESKTOP);
    705710        if (hwndFocus) {
     
    909914        HWND hwndFocus;
    910915
    911         strcpy(filename, "*.EXE");
     916        strcpy(filename, PCSZ_STARDOTEXE);
    912917        hwndFocus = WinQueryFocus(HWND_DESKTOP);
    913918        if (hwndFocus) {
     
    15111516    WinCheckButton(hwnd, CFGG_DNDDLG, fDragndropDlg);
    15121517    WinCheckButton(hwnd, CFGG_DEFAULTDELETEPERM, fDefaultDeletePerm);
     1518    WinCheckButton(hwnd, CFGG_ERRORBEEPOFF, fErrorBeepOff);
     1519    WinCheckButton(hwnd, CFGG_ALERTBEEPOFF, fAlertBeepOff);
    15131520    {
    15141521      long th = fNoFinger ? 2 : (fNoDead ? 1 : 0);
     
    16291636    fConfirmTarget = WinQueryButtonCheckstate(hwnd, CFGG_CONFIRMTARGET);
    16301637    PrfWriteProfileData(fmprof, appname, "ConfirmTarget",
    1631                         &fConfirmTarget, sizeof(BOOL));
     1638                        &fConfirmTarget, sizeof(BOOL));
     1639    fAlertBeepOff = WinQueryButtonCheckstate(hwnd, CFGG_ALERTBEEPOFF);
     1640    PrfWriteProfileData(fmprof, appname, "AlertBeepOff",
     1641                        &fAlertBeepOff, sizeof(BOOL));
     1642    fErrorBeepOff = WinQueryButtonCheckstate(hwnd, CFGG_ERRORBEEPOFF);
     1643    PrfWriteProfileData(fmprof, appname, "ErrorBeepOff",
     1644                        &fErrorBeepOff, sizeof(BOOL));
    16321645    {
    16331646      WinSendDlgItemMsg(hwnd, CFGG_CMDLNLNGTH, SPBM_QUERYVALUE,
     
    17281741        HWND hwndFocus;
    17291742
    1730         strcpy(filename, "*.EXE");
     1743        strcpy(filename, PCSZ_STARDOTEXE);
    17311744        hwndFocus = WinQueryFocus(HWND_DESKTOP);
    17321745        if (hwndFocus) {
Note: See TracChangeset for help on using the changeset viewer.