- Timestamp:
- Jun 30, 2008, 3:39:39 PM (17 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/dll/mainwnd.c (modified) (10 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/dll/mainwnd.cr1032 r1033 57 57 19 Jun 08 JBS Ticket 227: Allow temporary saving/deleting of the shutdown state of directory containers 58 58 22 Jun 08 GKY Use free_... functions for fortify checking 59 30 Jun 08 JBS Ticket 103: Fix restore of previous shutdown state when opening FM/2 59 60 60 61 ***********************************************************************/ … … 188 189 fNoTileUpdate = FALSE; 189 190 //xfree((char *)mp1, pszSrcFile, __LINE__); 190 if (fAutoTile)191 TileChildren(hwndMain, TRUE);191 // if (fAutoTile) 192 // TileChildren(hwndMain, TRUE); 192 193 break; 193 194 default: … … 2824 2825 if (*szDir) { 2825 2826 // If saving shutdown state skip no prescan drives 2826 if (fIsShutDownState &&2827 driveflags[toupper(*szDir) - 'A'] & DRIVE_NOPRESCAN) {2828 continue;2829 }2827 if (fIsShutDownState && 2828 driveflags[toupper(*szDir) - 'A'] & DRIVE_NOPRESCAN) { 2829 continue; 2830 } 2830 2831 sprintf(szKey, "%sDirCnrPos.%lu", szPrefix, numsaves); 2831 2832 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & swp, … … 2974 2975 CHAR szDir[CCHMAXPATH]; 2975 2976 CHAR szPrefix[STATE_NAME_MAX_BYTES + 2]; 2976 HWND hwndDir, hwndC, hwnd Dir0 = NULLHANDLE, hwndPPSave = NULLHANDLE;2977 HWND hwndDir, hwndC, hwndPPSave = NULLHANDLE; 2977 2978 SWP swp, swpO, swpN; 2978 ULONG size, numsaves = 0, x; 2979 ULONG size, numsaves = 0; 2980 LONG x; 2979 2981 double xtrans, ytrans; 2980 2982 BOOL fRestored = FALSE; … … 3055 3057 if (fDeleteState) 3056 3058 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); 3057 for (x = 0; x < numsaves; x++) {3059 for (x = numsaves - 1; x >= 0; x--) { 3058 3060 sprintf(szKey, "%sDirCnrPos.%lu", szPrefix, x); 3059 3061 size = sizeof(SWP); … … 3232 3234 MPFROMP(szDir), MPFROMLONG(1)); 3233 3235 if (hwndDir) { 3234 3235 if (x == 0) {3236 hwndDir0 = hwndDir;3237 }3238 3236 hwndC = WinWindowFromID(hwndDir, FID_CLIENT); 3239 3237 if (hwndC) { … … 3330 3328 swp.hwnd = hwndDir; 3331 3329 TransformSwp(&swp, xtrans, ytrans); 3332 if (!fAutoTile && !(swp.fl & (SWP_HIDE | SWP_MINIMIZE))) 3330 if (swp.fl & (SWP_HIDE | SWP_MINIMIZE)) { 3331 WinSetWindowPos(hwndDir, 3332 HWND_TOP, 0, 0, 0, 0, SWP_MINIMIZE | SWP_SHOW); 3333 WinSetWindowUShort(hwndDir, QWS_XRESTORE, (USHORT) swp.x); 3334 WinSetWindowUShort(hwndDir, QWS_CXRESTORE, (USHORT) swp.cx); 3335 WinSetWindowUShort(hwndDir, QWS_YRESTORE, (USHORT) swp.y); 3336 WinSetWindowUShort(hwndDir, QWS_CYRESTORE, (USHORT) swp.cy); 3337 } else 3333 3338 WinSetWindowPos(hwndDir, 3334 3339 HWND_TOP, … … 3340 3345 SWP_SIZE | SWP_SHOW | SWP_ZORDER | 3341 3346 SWP_ACTIVATE); 3342 else if (swp.fl & (SWP_HIDE | SWP_MINIMIZE)) {3343 WinSetWindowPos(hwndDir,3344 HWND_TOP, 0, 0, 0, 0, SWP_MINIMIZE | SWP_SHOW);3345 WinSetWindowUShort(hwndDir, QWS_XRESTORE, (USHORT) swp.x);3346 WinSetWindowUShort(hwndDir, QWS_CXRESTORE, (USHORT) swp.cx);3347 WinSetWindowUShort(hwndDir, QWS_YRESTORE, (USHORT) swp.y);3348 WinSetWindowUShort(hwndDir, QWS_CYRESTORE, (USHORT) swp.cy);3349 }3350 else3351 WinSetWindowPos(hwndDir,3352 HWND_BOTTOM,3353 0, 0, 0, 0, SWP_ZORDER | SWP_ACTIVATE);3354 3347 } 3355 3348 } … … 3359 3352 SavePresParams(hwndPPSave, "DirCnr"); 3360 3353 WinDestroyWindow(hwndPPSave); 3361 }3362 if (hwndDir0) {3363 WinSetFocus(HWND_DESKTOP, hwndDir0);3364 3354 } 3365 3355 } … … 5755 5745 5756 5746 case UM_SETUP5: 5757 if (fAutoTile)5758 TileChildren(hwnd, TRUE);5747 // if (fAutoTile) 5748 // TileChildren(hwnd, TRUE); 5759 5749 PostMsg(hwnd, UM_FILLUSERLIST, MPVOID, MPVOID); 5760 5750 PostMsg(hwnd, UM_FILLSETUPLIST, MPVOID, MPVOID); 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
