Changeset 1858 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Aug 20, 2015, 7:31:14 AM (10 years ago)
Author:
Steven Levine
Message:

Rework FlestWaitForWorkListEmpty to support wait for parents of path
Clean up some obsolete code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r1856 r1858  
    120120  09 Aug 15 SHL Use RESTORE_STATE_...
    121121  13 Aug 15 SHL Sync with Flesh/Stubby mods
     122  19 Aug 15 SHL Add/use fAmQuitting
     123  19 Aug 15 SHL Delete obsoletes
    122124
    123125***********************************************************************/
     
    214216PFNWP PFNWPButton;
    215217PFNWP PFNWPStatic;
    216 BOOL fAmClosing;
     218BOOL fAmClosing;                        // Attempting to close main window
     219BOOL fAmQuitting;                       // Main window close/destroy in progress
    217220BOOL fAutoTile;
    218221BOOL fAutoView;
     
    18241827MRESULT EXPENTRY DriveBackProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    18251828{
    1826 #if 0 // 2015-08-04 SHL FIXME to be gone
    1827   APIRET rc;
    1828 #endif // 2015-08-04 SHL FIXME to be gone
    1829 
    18301829  static BOOL emphasized;
    18311830
     
    21012100
    21022101  case WM_COMMAND:
    2103 #if 0 // 2015-08-04 SHL FIXME to be gone
    2104     rc = DosWaitEventSem(hevTreeCnrScanComplete, SEM_INDEFINITE_WAIT);
    2105     if (rc)
    2106       Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__, "DosWaitEventSem");
    2107 #endif // 2015-08-04 SHL FIXME to be gone
    2108 
    21092102    switch(SHORT1FROMMP(mp1)) {
    21102103    case IDM_RESCAN:
     
    66796672               WM_SYSCOMMAND, MPFROM2SHORT(SC_MINIMIZE, 0), MPVOID);
    66806673    if (CloseChildren(hwnd)) {
     6674      // Close request refused - recover
    66816675      fAmClosing = FALSE;
    66826676      if (fAutoTile)
     
    66886682        WinSendMsg(hwndTree, WM_CLOSE, MPVOID, MPVOID);
    66896683    }
     6684    fAmQuitting = TRUE;                 // Let world know quit in progress
    66906685    DosSleep(1);
    66916686    DbgMsg(pszSrcFile, __LINE__, "MainWndProc WM_CLOSE returning with fAmClosing %u", fAmClosing); // 2015-08-16 SHL
Note: See TracChangeset for help on using the changeset viewer.