Changeset 1471 for trunk/dll/init.c


Ignore:
Timestamp:
Oct 14, 2009, 1:43:04 AM (16 years ago)
Author:
Steven Levine
Message:

Remember last filter mask selection
Use Ctrl-click to select state or commonly used directory quicklist entry without activating.
Use Ctrl-click to select walk dialog user list entry without activating.
Avoid drivebar MB2 exception
Remember last seek and scan mask selection across runs
Avoid traps when changing tree container display style
Restore missing drives to drive list dropdown
Minor documentation updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1452 r1471  
    7878  14 Mar 09 GKY PCSZ strings moved to compile time initialization
    7979  14 Mar 09 GKY Prevent execution of UM_SHOWME while drive scan is occuring replaces check for
    80                 saved drive containers.
     80                saved drive containers.
    8181  06 Jun 09 GKY Add option to show file system type or drive label in tree
    8282  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
     
    8585  22 Jul 09 GKY Fix failure to restore the notebook setting for saving container states or not
    8686  12 Sep 09 GKY Change protectonly check to check for VKBD being loaded instead of starting
    87                 command.com. Prevents hang (at least until a Dos program is started) on a system
    88                 that has a broken MDOS install.
     87                command.com. Prevents hang (at least until a Dos program is started) on a system
     88                that has a broken MDOS install.
    8989
    9090***********************************************************************/
     
    117117#include "cmdline.h"                    // Data declaration(s)
    118118#include "fm2cmd.h"                     // Data declaration(s)
    119 #include "printer.h"                    // Data declaration(s)
    120 #include "flesh.h"                      // Data declaration(s)
    121 #include "worker.h"                     // Data declaration(s)
    122 #include "filldir.h"                    // Data declaration(s)
    123 #include "defview.h"                    // Data declaration(s)
    124 #include "draglist.h"                   // Data declaration(s)
     119#include "printer.h"                    // Data declaration(s)
     120#include "flesh.h"                      // Data declaration(s)
     121#include "worker.h"                     // Data declaration(s)
     122#include "filldir.h"                    // Data declaration(s)
     123#include "defview.h"                    // Data declaration(s)
     124#include "draglist.h"                   // Data declaration(s)
    125125#include "fm3dlg.h"
    126126#include "datamin.h"
     
    128128#include "fm3str.h"
    129129#include "version.h"
    130 #include "pathutil.h"                   // BldFullPathName
    131 #include "arccnrs.h"                    // ArcClientWndProc
    132 #include "errutil.h"                    // Dos_Error...
    133 #include "strutil.h"                    // GetPString
    134 #include "valid.h"                      // ArgDriveFlags
    135 #include "autoview.h"                   // AutoViewProc
     130#include "pathutil.h"                   // BldFullPathName
     131#include "arccnrs.h"                    // ArcClientWndProc
     132#include "errutil.h"                    // Dos_Error...
     133#include "strutil.h"                    // GetPString
     134#include "valid.h"                      // ArgDriveFlags
     135#include "autoview.h"                   // AutoViewProc
    136136#include "mainwnd.h"                    // BubbleProc, ChildButtonProc, DriveBackProc,
    137137                                        // DriveProc, LEDProc, MainWndProc, StatusProc
     
    10971097  if (DosCreateMutexSem(NULL, &hmtxFM2Delete, 0L, FALSE))
    10981098    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    1099               PCSZ_DOSCREATEMUTEXSEM);
     1099              PCSZ_DOSCREATEMUTEXSEM);
    11001100  if (DosCreateMutexSem(NULL, &hmtFillingTreeCnr, 0L, FALSE))
    11011101    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    1102               PCSZ_DOSCREATEMUTEXSEM);
     1102              PCSZ_DOSCREATEMUTEXSEM);
    11031103  if (DosCreateEventSem(NULL, &hevInitialCnrScanComplete, 0L, FALSE))
    11041104    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    1105               PCSZ_DOSCREATEEVENTSEM);
     1105              PCSZ_DOSCREATEEVENTSEM);
    11061106
    11071107  /*
     
    11811181      rc = DosQueryModuleHandle("VKBD", &hmod);
    11821182      if (rc != NO_ERROR) {
    1183         fProtectOnly = TRUE;
    1184         DbgMsg(pszSrcFile, __LINE__, "DosQModuleHandle VKBD returned %d fProtectOnly=%d", rc, fProtectOnly);
     1183        fProtectOnly = TRUE;
     1184        DbgMsg(pszSrcFile, __LINE__, "DosQModuleHandle VKBD returned %d fProtectOnly=%d", rc, fProtectOnly);
    11851185      }
    11861186      else {
    1187         rc = DosQueryModuleHandle("VMOUSE", &hmod);
    1188         if (rc != NO_ERROR)
    1189           fProtectOnly = TRUE;
    1190         DbgMsg(pszSrcFile, __LINE__, "DosQModuleHandle VMOUSE returned %d fProtectOnly=%d", rc, fProtectOnly);
     1187        rc = DosQueryModuleHandle("VMOUSE", &hmod);
     1188        if (rc != NO_ERROR) {
     1189          fProtectOnly = TRUE;
     1190          DbgMsg(pszSrcFile, __LINE__, "DosQModuleHandle VMOUSE returned %d fProtectOnly=%d", rc, fProtectOnly);
     1191        }
    11911192      }
    11921193    }
     
    13431344  PrfQueryProfileData(fmprof, appname, "ShowEnv", &fShowEnv, &size);
    13441345  PrfQueryProfileString(fmprof, appname, "TreeEnvVarList", "PATH;DPATH;LIBPATH;HELP;BOOKSHELF;",
    1345                         pszTreeEnvVarList, MaxComLineStrg);
     1346                        pszTreeEnvVarList, MaxComLineStrg);
    13461347  size = sizeof(BOOL);
    13471348  PrfQueryProfileData(fmprof, FM3Str, "ShowDriveOnly", &fShowDriveOnly, &size);
     
    14081409  size = sizeof(BOOL);
    14091410  PrfQueryProfileData(fmprof, appname, "ConfirmDelete", &fConfirmDelete, &size);
    1410   size = sizeof(BOOL); 
     1411  size = sizeof(BOOL);
    14111412  PrfQueryProfileData(fmprof, FM3Str, "SaveState", &fSaveState, &size);
    14121413  size = sizeof(BOOL);
Note: See TracChangeset for help on using the changeset viewer.