Skip to content

Commit b254fbf

Browse files
fedejeanneHeikoKlare
authored andcommitted
Do not do special handling for the header tooltip on Trees #3108
Fixes #3108
1 parent 931f050 commit b254fbf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets

bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7404,7 +7404,11 @@ LRESULT wmNotify (NMHDR hdr, long wParam, long lParam) {
74047404
if (hdr.hwndFrom == itemToolTipHandle && itemToolTipHandle != 0) {
74057405
LRESULT result = wmNotifyToolTip (hdr, wParam, lParam);
74067406
if (result != null) return result;
7407+
} else if (hdr.hwndFrom == headerToolTipHandle && headerToolTipHandle != 0) {
7408+
// if it's the header, let Windows do its thing.
74077409
} else if (hdr.code == OS.TTN_SHOW) {
7410+
// Fallback: it's not about the item or about the header but it's still about a
7411+
// tooltip.
74087412
return positionTooltip(hdr, wParam, lParam, false);
74097413
}
74107414
if (hdr.hwndFrom == hwndHeader && hwndHeader != 0) {

0 commit comments

Comments
 (0)