Changeset 1444 for trunk/dll/comp.c


Ignore:
Timestamp:
Jul 23, 2009, 1:24:23 AM (16 years ago)
Author:
Gregg Young
Message:

Rework of drivebar to rescan all drives and refresh media buttons and menu items grey out inappropriate menu items. Streamline Tree scan code and use semaphores to serialize access. Add NOEASUPPORT and LOCALHD driveflag; .LONGNAME usage fixes; (Tickets 377-386)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/comp.c

    r1438 r1444  
    6767  15 Mar 09 GKY Use WriteDetailsSwitchs to save detail switch changes to the ini file.
    6868  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
     69  13 Jul 09 SHL Sync with renames
    6970
    7071***********************************************************************/
     
    766767        SleepIfNeeded(&itdSleep, 0);
    767768      } // while
    768       WinPostMsg(cmp->hwnd, WM_TIMER, MPFROMLONG(ID_TIMER), 0); // Force update
     769      WinPostMsg(cmp->hwnd, WM_TIMER, MPFROMLONG(ID_COMP_TIMER), 0);    // Force update
    769770    Abort:
    770771      WinDestroyMsgQueue(hmq);
     
    822823
    823824      default:
     825        // 08 Feb 09 SHL fixme to support Ctrl-click for ANDed select
    824826        // 13 Jan 08 SHL fixme to decide if cmp->reset can ever get set
    825827        // if not lots of code can disappear
     
    14021404  }
    14031405
    1404   WinPostMsg(hwnd, WM_TIMER, MPFROMLONG(ID_TIMER), 0);  // Force update
     1406  WinPostMsg(hwnd, WM_TIMER, MPFROMLONG(ID_COMP_TIMER), 0);     // Force update
    14051407  DosPostEventSem(CompactSem);
    14061408}
     
    18831885            pcil->pszDispAttr = FileAttrToString(pcil->attrFile);
    18841886            pcil->cbFile = filesl[l]->cbFile;
    1885             // 12 Jan 08 SHL fixme to used cached size here too
     1887            // 12 Jan 08 SHL fixme to use cached size here too
    18861888            CommaFmtULL(szBuf, sizeof(szBuf), pcil->cbFile, ' ');
    18871889            pcil->pszFmtFileSize = xstrdup(szBuf, pszSrcFile, __LINE__);
     
    22462248        }
    22472249      }
    2248       WinStartTimer(WinQueryAnchorBlock(hwnd), hwnd, ID_TIMER, 500);
     2250      WinStartTimer(WinQueryAnchorBlock(hwnd), hwnd, ID_COMP_TIMER, 500);
    22492251    }
    22502252    break;
     
    24572459      WinEnableWindowUpdate(hwndLeft, TRUE);
    24582460      WinEnableWindowUpdate(hwndRight, TRUE);
    2459       WinPostMsg(hwnd, WM_TIMER, MPFROMLONG(ID_TIMER), 0);      // Force update
     2461      WinPostMsg(hwnd, WM_TIMER, MPFROMLONG(ID_COMP_TIMER), 0); // Force update
    24602462      // 12 Jan 08 SHL fixme to have SetButtonEnables(COMPARE* pcmp, BOOL fEnable)
    24612463      // to replace duplicated code here and elsewhere
     
    28842886
    28852887  case WM_COMMAND:
     2888    // 29 Apr 09 SHL  fixme to support more context menu items - IDM_EDIT, IDM_DELETE etc.
    28862889    switch (SHORT1FROMMP(mp1)) {
    28872890    case IDM_COMPARE:
     
    33643367    if (cmp) {
    33653368      // 17 Jan 08 SHL fixme to know if stop really needed?
    3366       WinStopTimer(WinQueryAnchorBlock(hwnd), hwnd, ID_TIMER);
     3369      WinStopTimer(WinQueryAnchorBlock(hwnd), hwnd, ID_COMP_TIMER);
    33673370      if (cmp->dcd.hwndLastMenu)
    33683371        WinDestroyWindow(cmp->dcd.hwndLastMenu);
Note: See TracChangeset for help on using the changeset viewer.