View | Details | Raw Unified | Return to bug 327260
Collapse All | Expand All

(-)Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java (-6 / +6 lines)
Lines 1020-1031 Link Here
1020
			if (clrTextBk != -1) event.detail |= SWT.BACKGROUND;
1020
			if (clrTextBk != -1) event.detail |= SWT.BACKGROUND;
1021
			if (hot) event.detail |= SWT.HOT;
1021
			if (hot) event.detail |= SWT.HOT;
1022
			if (selected) event.detail |= SWT.SELECTED;
1022
			if (selected) event.detail |= SWT.SELECTED;
1023
			if (!explorerTheme) {
1023
			//if ((nmcd.uItemState & OS.CDIS_FOCUS) != 0) {
1024
				//if ((nmcd.uItemState & OS.CDIS_FOCUS) != 0) {
1024
			if (OS.SendMessage (handle, OS.TVM_GETNEXTITEM, OS.TVGN_CARET, 0) == nmcd.dwItemSpec) {
1025
				if (OS.SendMessage (handle, OS.TVM_GETNEXTITEM, OS.TVGN_CARET, 0) == nmcd.dwItemSpec) {
1025
				if (handle == OS.GetFocus ()) {
1026
					if (handle == OS.GetFocus ()) {
1026
					int uiState = (int)/*64*/OS.SendMessage (handle, OS.WM_QUERYUISTATE, 0, 0);
1027
						int uiState = (int)/*64*/OS.SendMessage (handle, OS.WM_QUERYUISTATE, 0, 0);
1027
					if ((uiState & OS.UISF_HIDEFOCUS) == 0) {
1028
						if ((uiState & OS.UISF_HIDEFOCUS) == 0) {
1028
						if (!explorerTheme || !selected) {
1029
							focused = true;
1029
							focused = true;
1030
							event.detail |= SWT.FOCUSED;
1030
							event.detail |= SWT.FOCUSED;
1031
						}
1031
						}

Return to bug 327260