Changeset 1856 for trunk/dll/mainwnd.c
- Timestamp:
- Aug 18, 2015, 7:12:52 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/dll/mainwnd.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/mainwnd.c
r1844 r1856 117 117 02 Aug 15 GKY Remove unneed SubbyScan code and improve suppression of blank lines and 118 118 duplicate subdirectory name caused by running Stubby in worker threads. 119 duplicate subdirectory name caused by running Stubby in worker threads. 119 120 09 Aug 15 SHL Use RESTORE_STATE_... 121 13 Aug 15 SHL Sync with Flesh/Stubby mods 120 122 121 123 ***********************************************************************/ … … 239 241 USHORT shiftstate; 240 242 243 UINT cDirectoriesRestored; // 2015-08-12 SHL Incremented by RestoreDirCnrState 244 241 245 #pragma data_seg(GLOBAL2) 242 246 HMODULE FM3ModHandle; … … 1820 1824 MRESULT EXPENTRY DriveBackProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 1821 1825 { 1826 #if 0 // 2015-08-04 SHL FIXME to be gone 1822 1827 APIRET rc; 1828 #endif // 2015-08-04 SHL FIXME to be gone 1823 1829 1824 1830 static BOOL emphasized; … … 2095 2101 2096 2102 case WM_COMMAND: 2103 #if 0 // 2015-08-04 SHL FIXME to be gone 2097 2104 rc = DosWaitEventSem(hevTreeCnrScanComplete, SEM_INDEFINITE_WAIT); 2098 2105 if (rc) 2099 2106 Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__, "DosWaitEventSem"); 2107 #endif // 2015-08-04 SHL FIXME to be gone 2100 2108 2101 2109 switch(SHORT1FROMMP(mp1)) { … … 2136 2144 HWND hwndActive = TopWindow(hwnd, (HWND) 0); 2137 2145 if (hwndActive) 2146 DbgMsg(pszSrcFile, __LINE__, "WinSendMsg UM_DRIVECMD %c", *dv); // 2015-08-04 SHL FIXME debug 2138 2147 WinSendMsg(WinWindowFromID(hwndActive, FID_CLIENT), 2139 2148 UM_DRIVECMD, MPFROMP(dv), MPVOID); … … 3446 3455 HWND hwndDir, hwndC, hwndPPSave = NULLHANDLE; 3447 3456 SWP swp, swpO, swpN; 3448 ULONG size, numsaves = 0; 3457 ULONG size; 3458 ULONG numsaves = 0; 3449 3459 LONG x; 3450 3460 double xtrans, ytrans; … … 3464 3474 3465 3475 sprintf(szPrefix, "%s.", pszStateName); 3476 3477 DbgMsg(pszSrcFile, __LINE__, "RestoreDirCnrState %s", pszStateName); // 2015-08-13 SHL FIXME debug 3466 3478 3467 3479 // If restoring shutdown state bypass no-prescan drives … … 3533 3545 size = sizeof(ULONG); 3534 3546 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, &size)) { 3547 // 2015-08-13 SHL TreeCnrWndProc UM_RESCAN has already requested a UM_RESCAN2 which 3548 // will result in an extra UM_SHOWME 3549 // RestoreDirCnrState can be called before pending UM_SHOWMEs complete - oh well 3550 if (fSwitchTreeOnFocus && numsaves) 3551 cDirectoriesRestored = 1; 3552 else 3553 cDirectoriesRestored = 0; 3535 3554 if (fDeleteState) 3536 3555 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L); … … 3631 3650 } 3632 3651 } 3652 // 2015-08-12 SHL Suppress drive tree updates if not last container to restore 3653 if (fSwitchTreeOnFocus) 3654 cDirectoriesRestored++; // 2015-08-12 SHL 3655 3633 3656 if (!PostMsg(hwndCnr, UM_SETUP2, NULL, NULL)) 3634 3657 WinSendMsg(hwndCnr, UM_SETUP2, NULL, NULL); … … 3660 3683 } 3661 3684 } 3662 } // for 3685 } // for numsaves 3663 3686 if (hwndPPSave) { 3664 3687 SavePresParams(hwndPPSave, PCSZ_DIRCNR); 3665 3688 WinDestroyWindow(hwndPPSave); 3666 3689 } 3690 DbgMsg(pszSrcFile, __LINE__, "RestoreDirCnrState returning fRestored %u", fRestored); // 2015-08-13 SHL FIXME debug 3667 3691 } 3692 3668 3693 return fRestored; 3669 3694 } … … 6533 6558 } 6534 6559 else if (SHORT1FROMMP(mp1) == MAIN_DRIVELIST) { 6560 DbgMsg(pszSrcFile, __LINE__, "MainWndProc CBN_ENTER ShowTreeRec(\"%s\")", path); // 2015-08-04 SHL FIXME debug 6535 6561 ShowTreeRec(WinWindowFromID(WinWindowFromID(hwndTree, 6536 6562 FID_CLIENT), … … 6663 6689 } 6664 6690 DosSleep(1); 6665 DbgMsg(pszSrcFile, __LINE__, "MainWndProc WM_CLOSE returning ");6691 DbgMsg(pszSrcFile, __LINE__, "MainWndProc WM_CLOSE returning with fAmClosing %u", fAmClosing); // 2015-08-16 SHL 6666 6692 6667 6693 return 0; // Suppress WinDefWindowProc WM_QUIT message generation … … 6693 6719 6694 6720 case WM_DESTROY: 6721 DbgMsg(pszSrcFile, __LINE__, "MainWndProc WM_DESTROY hwnd %p TID %u", hwnd, GetTidForThread()); // 2015-08-09 SHL FIXME debug 6695 6722 hwndMain = (HWND)0; 6696 6723 if (!PostMsg((HWND)0, WM_QUIT, MPVOID, MPVOID)) 6697 6724 WinSendMsg((HWND)0, WM_QUIT, MPVOID, MPVOID); 6698 6725 # ifdef FORTIFY 6726 DbgMsg(pszSrcFile, __LINE__, "MainWndProc WM_DESTROY hwnd %p TID %u", hwnd, GetTidForThread()); // 2015-08-09 SHL FIXME debug 6699 6727 free_commands(); 6700 6728 free_associations();
Note:
See TracChangeset
for help on using the changeset viewer.
