Lines 94-99
Link Here
|
94 |
boolean ignoreDrawSelection, ignoreDrawHot, ignoreFullSelection, explorerTheme; |
94 |
boolean ignoreDrawSelection, ignoreDrawHot, ignoreFullSelection, explorerTheme; |
95 |
int scrollWidth, selectionForeground; |
95 |
int scrollWidth, selectionForeground; |
96 |
int /*long*/ headerToolTipHandle, itemToolTipHandle; |
96 |
int /*long*/ headerToolTipHandle, itemToolTipHandle; |
|
|
97 |
int /*long*/ lastTimerID = -1; |
98 |
int lastTimerCount; |
99 |
static final int TIMER_MAX_COUNT = 8; |
97 |
static final int INSET = 3; |
100 |
static final int INSET = 3; |
98 |
static final int GRID_WIDTH = 1; |
101 |
static final int GRID_WIDTH = 1; |
99 |
static final int SORT_WIDTH = 10; |
102 |
static final int SORT_WIDTH = 10; |
Lines 1526-1531
Link Here
|
1526 |
if (findImageControl () != null) { |
1529 |
if (findImageControl () != null) { |
1527 |
hItem = OS.SendMessage (handle, OS.TVM_GETNEXTITEM, OS.TVGN_FIRSTVISIBLE, 0); |
1530 |
hItem = OS.SendMessage (handle, OS.TVM_GETNEXTITEM, OS.TVGN_FIRSTVISIBLE, 0); |
1528 |
} |
1531 |
} |
|
|
1532 |
|
1533 |
// System.out.println("TIMER [IN] " + wParam + " " + handle); |
1534 |
int /*long*/ bits = OS.SendMessage (handle, OS.TVM_GETEXTENDEDSTYLE, 0, 0); |
1535 |
if ((bits & OS.TVS_EX_FADEINOUTEXPANDOS) != 0) { |
1536 |
if (!OS.IsWindowVisible (hwnd)) { |
1537 |
if (lastTimerID == wParam) { |
1538 |
lastTimerCount++; |
1539 |
} else { |
1540 |
lastTimerCount = 0; |
1541 |
} |
1542 |
lastTimerID = wParam; |
1543 |
if (lastTimerCount >= TIMER_MAX_COUNT) { |
1544 |
// System.out.println("STOPPING TIMER " + wParam + " " + lParam); |
1545 |
OS.CallWindowProc (TreeProc, handle, OS.WM_MOUSEMOVE, 0, 0); |
1546 |
// OS.KillTimer (handle, wParam); |
1547 |
lastTimerID = -1; |
1548 |
lastTimerCount = 0; |
1549 |
} |
1550 |
} else { |
1551 |
lastTimerID = -1; |
1552 |
lastTimerCount = 0; |
1553 |
} |
1554 |
} |
1529 |
break; |
1555 |
break; |
1530 |
} |
1556 |
} |
1531 |
} |
1557 |
} |