Changeset 1444 for trunk/dll/key.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/key.c

    r1224 r1444  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2004 Steven H. Levine
     9  Copyright (c) 2004, 2009 Steven H. Levine
    1010
    1111  Revisions
     
    1313  06 Aug 07 GKY Reduce DosSleep times (ticket 148)
    1414  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
    15 
     15  13 Jul 09 SHL Sync with renames
    1616
    1717***********************************************************************/
     
    5151  static HAB hab = 0;
    5252  BOOL no = FALSE;
    53   static BOOL pause = FALSE;
    54   static INT width, direction, ticktock, counter = 0;
     53  static BOOL noanimation;
     54  static INT width, direction, ticktock, counter;
    5555  static HPOINTER stick1, stick2, stick3, stick4, stick12, stick22, stick32,
    5656    stick42, stick5, stick52;
     
    6363    }
    6464    if (mp2)
    65       pause = TRUE;
     65      noanimation = TRUE;
    6666    else
    67       pause = FALSE;
     67      noanimation = FALSE;
    6868    AboutBox = hwnd;
    6969    hab = WinQueryAnchorBlock(hwnd);
     
    8080    if (!strcmp(realappname, "FM/4"))
    8181      WinSetDlgItemText(hwnd, ABT_PROGNAME, GetPString(IDS_FM2LITETEXT));
    82     if (!pause) {
     82    if (!noanimation) {
    8383      stick1 = WinLoadPointer(HWND_DESKTOP, FM3ModHandle, ID_STICK1);
    8484      stick2 = WinLoadPointer(HWND_DESKTOP, FM3ModHandle, ID_STICK2);
     
    9393      direction = 2;
    9494      ticktock = 0;
    95       WinStartTimer(hab, hwnd, ID_TIMER, 164);
     95      WinStartTimer(hab, hwnd, ID_ABOUT_TIMER, 164);
    9696      PostMsg(hwnd, UM_SETUP, MPVOID, MPVOID);
    9797    }
     
    299299  case WM_DESTROY:
    300300    if (hab) {
    301       if (!pause) {
    302         WinStopTimer(hab, hwnd, ID_TIMER);
     301      if (!noanimation) {
     302        WinStopTimer(hab, hwnd, ID_ABOUT_TIMER);
    303303        WinDestroyPointer(stick1);
    304304        WinDestroyPointer(stick2);
Note: See TracChangeset for help on using the changeset viewer.