Changeset 1482 for trunk/dll/mainwnd.c
- Timestamp:
 - Dec 13, 2009, 8:59:47 PM (16 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  trunk/dll/mainwnd.c (modified) (10 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/dll/mainwnd.c
r1471 r1482 99 99 12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini 100 100 14 Sep 09 SHL Blink thread LEDs when workers busy 101 13 Dec 09 GKY Fixed separate paramenters. Please note that appname should be used in 102 profile calls for user settings that work and are setable in more than one 103 miniapp; FM3Str should be used for setting only relavent to FM/2 or that 104 aren't user settable; realappname should be used for setting applicable to 105 one or more miniapp but not to FM/2 101 106 102 107 ***********************************************************************/ … … 3231 3236 // Delete saved state if internally saved state 3232 3237 fDeleteState = strcmp(pszStateName, PCSZ_FM2TEMPTEXT) == 0; 3233 3234 //size = (ULONG)0;3235 3238 sprintf(szKey, "%sToolbar", szPrefix); 3236 //if (PrfQueryProfileSize(fmprof, FM3Str, szKey, &size) && size)3237 3239 { 3238 3240 if (fToolsChanged) … … 3243 3245 PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID); 3244 3246 } 3245 //size = (ULONG)0;3246 3247 sprintf(szKey, "%sTargetDir", szPrefix); 3247 //if (PrfQueryProfileSize(fmprof, FM3Str, szKey, &size) && size)3248 3248 { 3249 3249 PrfQueryProfileString(fmprof, FM3Str, szKey, NULL, targetdir, sizeof(targetdir)); … … 3253 3253 size = sizeof(SWP); 3254 3254 sprintf(szKey, "%sMySizeLastTime", szPrefix); 3255 if (!PrfQueryProfileData(fmprof, 3256 FM3Str, 3257 szKey, 3258 (PVOID) &swpO, 3259 &size) || 3255 if (!PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &swpO, &size) || 3260 3256 size != sizeof(SWP) || !swp.cx || !swp.cy) 3261 3257 { … … 3303 3299 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 3304 3300 size = sizeof(ULONG); 3305 if (PrfQueryProfileData(fmprof, 3306 FM3Str, szKey, (PVOID) &numsaves, &size)) { 3301 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, &size)) { 3307 3302 if (fDeleteState) 3308 3303 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); … … 3368 3363 strcpy(eos, "Sort"); 3369 3364 size = sizeof(INT); 3370 if (PrfQueryProfileData(fmprof, 3371 FM3Str, 3372 szKey, 3373 (PVOID) &dcd->sortFlags, 3365 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->sortFlags, 3374 3366 &size)) { 3375 3367 if (!dcd->sortFlags) … … 3378 3370 size = sizeof(MASK); 3379 3371 strcpy(eos, "Filter"); 3380 if (PrfQueryProfileData(fmprof, 3381 FM3Str, 3382 szKey, 3383 (PVOID) &dcd->mask, &size)) { 3372 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->mask, &size)) { 3384 3373 if (*dcd->mask.szMask) 3385 3374 WinSendMsg(WinWindowFromID(hwndC, DIR_CNR), … … 3390 3379 if (!noview) { 3391 3380 size = sizeof(ULONG); 3392 if (PrfQueryProfileData(fmprof, 3393 FM3Str, 3394 szKey, 3395 (PVOID) &dcd->flWindowAttr, 3381 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->flWindowAttr, 3396 3382 &size)) { 3397 3383 … … 4732 4718 sprintf(szKey, "%s.NumDirsLastTime", szStateName); 4733 4719 size = sizeof(ULONG); 4734 if (!PrfQueryProfileData(fmprof, 4735 FM3Str, 4736 szKey, 4737 (PVOID)&numsaves, 4738 &size)) { 4720 if (!PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, &size)) { 4739 4721 saymsg(MB_ENTER | MB_ICONASTERISK, hwnd, 4740 4722 GetPString(IDS_WARNINGTEXT), … … 5725 5707 5726 5708 size = sizeof(BOOL); 5727 if (PrfQueryProfileData(fmprof, 5728 FM3Str, 5729 "MenuInvisible", &temp, &size) && size && temp) 5709 if (PrfQueryProfileData(fmprof, FM3Str, "MenuInvisible", &temp, &size) && 5710 size && temp) 5730 5711 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_HIDEMENU, 0), MPVOID); 5731 5712 size = sizeof(BOOL); 5732 if (PrfQueryProfileData(fmprof, 5733 FM3Str, "FreeTree", &temp, &size) &&size && temp)5713 if (PrfQueryProfileData(fmprof, FM3Str, "FreeTree", &temp, &size) && 5714 size && temp) 5734 5715 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_FREETREE, 0), MPVOID); 5735 5716 size = sizeof(BOOL); 5736 if (PrfQueryProfileData(fmprof, 5737 FM3Str, 5738 "AutoTile", &temp, &size) && size && !temp) 5717 if (PrfQueryProfileData(fmprof, FM3Str, "AutoTile", &temp, &size) && 5718 size && !temp) 5739 5719 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_AUTOTILE, 0), MPVOID); 5740 5720 size = sizeof(BOOL); 5741 if (PrfQueryProfileData(fmprof, 5742 FM3Str, "Toolbar", &temp, &size) && size && !temp) 5721 if (PrfQueryProfileData(fmprof, appname, "Toolbar", &temp, &size) && size && !temp) 5743 5722 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_TOOLBAR, 0), MPVOID); 5744 5723  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  