Changeset 922 for trunk/dll/misc.c


Ignore:
Timestamp:
Jan 13, 2008, 8:50:30 PM (18 years ago)
Author:
Gregg Young
Message:

Get Subjectwidth/left working in the collector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r921 r922  
    13161316  size = sizeof(BOOL);
    13171317  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
     1318  strcpy(eos, "SubjectInLeftPane");
     1319  if (dcd)
     1320    bool = &dcd->fSubjectInLeftPane;
     1321  else
     1322    bool = &fSubjectInLeftPane;
     1323  *bool = fSubjectInLeftPane;
     1324  size = sizeof(BOOL);
     1325  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
     1326  strcpy(eos, "SubjectLengthMax");
     1327  if (dcd)
     1328    bool = &dcd->fSubjectLengthMax;
     1329  else
     1330    bool = &fSubjectLengthMax;
     1331  *bool = fSubjectLengthMax;
     1332  size = sizeof(BOOL);
     1333  PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
     1334  if (dcd) {
     1335    if (dcd->fSubjectLengthMax)
     1336      dcd->SubjectDisplayWidth = 0;
     1337    else {
     1338      strcpy(eos, "SubjectDisplayWidth");
     1339      bool = &dcd->SubjectDisplayWidth;
     1340      *bool = SubjectDisplayWidth;
     1341      size = sizeof(ULONG);
     1342      PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
     1343      if (dcd->SubjectDisplayWidth < 50)
     1344        dcd->SubjectDisplayWidth = 0;
     1345      else if (dcd->SubjectDisplayWidth > 1000)
     1346        dcd->SubjectDisplayWidth = 1000;
     1347    }
     1348  }
     1349  else {
     1350    if (fSubjectLengthMax)
     1351      SubjectDisplayWidth = 0;
     1352    else {
     1353      strcpy(eos, "SubjectDisplayWidth");
     1354      bool = &SubjectDisplayWidth;
     1355      *bool = SubjectDisplayWidth;
     1356      size = sizeof(ULONG);
     1357      PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
     1358      if (SubjectDisplayWidth < 50)
     1359        SubjectDisplayWidth = 0;
     1360      else if (SubjectDisplayWidth > 1000)
     1361        SubjectDisplayWidth = 1000;
     1362    }
     1363  }
    13181364}
    13191365
Note: See TracChangeset for help on using the changeset viewer.