Changeset 1777 for trunk/dll/init.c


Ignore:
Timestamp:
Jun 13, 2014, 3:51:31 AM (11 years ago)
Author:
Steven Levine
Message:

Rework FM/2 Config menu. Add confirm delete toggle. (Steven)
Rework FM/2 Lite Config menu. Add drag&drop dialog toggle and confirm delete toggles. (Steven)
Correct View, Sort and Filter button initialization. (Steven)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1753 r1777  
    803803          if (p) {
    804804            p++;
    805         ul = strtoul(p, NULL, 16);
     805            ul = strtoul(p, NULL, 16);
    806806            GetDosPgmName(ul, temp);
    807807            if (!strstr(temp, "FM/2") &&
     
    11991199  //Get default Country info
    12001200  {
    1201   COUNTRYCODE Country    = {0};
    1202   ULONG ulInfoLen  = 0;
    1203   COUNTRYINFO CtryInfo   = {0};
    1204 
    1205   if (!DosQueryCtryInfo(sizeof(CtryInfo), &Country, &CtryInfo, &ulInfoLen)) {
    1206     *ThousandsSeparator = CtryInfo.szThousandsSeparator[0];
    1207     strcpy(DateSeparator, CtryInfo.szDateSeparator);
    1208     strcpy(TimeSeparator, CtryInfo.szTimeSeparator);
    1209     ulDateFmt = CtryInfo.fsDateFmt;
    1210     ulTimeFmt = CtryInfo.fsTimeFmt;
    1211     //DbgMsg(pszSrcFile, __LINE__, "Date Fmt %x", ulDateFmt);
    1212   }
    1213   else {
    1214     strcpy(ThousandsSeparator, ",");
    1215     strcpy(DateSeparator, "/");
    1216     strcpy(TimeSeparator, ":");
    1217     ulDateFmt = 0;
    1218     ulTimeFmt = 0;
    1219   }
    1220   }
    1221   { // Check for the existance of various partitioning tools to set up menu items
     1201    COUNTRYCODE Country    = {0};
     1202    ULONG ulInfoLen  = 0;
     1203    COUNTRYINFO CtryInfo   = {0};
     1204
     1205    if (!DosQueryCtryInfo(sizeof(CtryInfo), &Country, &CtryInfo, &ulInfoLen)) {
     1206      *ThousandsSeparator = CtryInfo.szThousandsSeparator[0];
     1207      strcpy(DateSeparator, CtryInfo.szDateSeparator);
     1208      strcpy(TimeSeparator, CtryInfo.szTimeSeparator);
     1209      ulDateFmt = CtryInfo.fsDateFmt;
     1210      ulTimeFmt = CtryInfo.fsTimeFmt;
     1211      //DbgMsg(pszSrcFile, __LINE__, "Date Fmt %x", ulDateFmt);
     1212    }
     1213    else {
     1214      strcpy(ThousandsSeparator, ",");
     1215      strcpy(DateSeparator, "/");
     1216      strcpy(TimeSeparator, ":");
     1217      ulDateFmt = 0;
     1218      ulTimeFmt = 0;
     1219    }
     1220  }
     1221  {
     1222    // Check for the existance of various partitioning tools to set up menu items
    12221223    ULONG ulAppType;
    12231224
     
    14161417  PrfQueryProfileData(fmprof, appname, "ShowEnv", &fShowEnv, &size);
    14171418  PrfQueryProfileString(fmprof, appname, "TreeEnvVarList", "PATH;DPATH;LIBPATH;HELP;BOOKSHELF;",
    1418                         pszTreeEnvVarList, MaxComLineStrg);
     1419                        pszTreeEnvVarList, MaxComLineStrg);
    14191420  size = sizeof(BOOL);
    14201421  PrfQueryProfileData(fmprof, appname, "ShowDriveOnly", &fShowDriveOnly, &size);
Note: See TracChangeset for help on using the changeset viewer.