summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
index 426aebb481..7c79d02540 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
@@ -880,26 +880,6 @@ LRESULT wmCommandChild (int wParam, int lParam) {
return super.wmCommandChild (wParam, lParam);
}
-LRESULT wmColorChild (int wParam, int lParam) {
- LRESULT result = super.wmColorChild (wParam, lParam);
- /*
- * Feature in Windows. When WM_CTLCOLORBTN returns
- * a NULL brush to indicate that the background should
- * not be drawn, when the button has the BS_RADIOBUTTON
- * style, it draws black. The fix is to draw the background
- * in WM_CTLCOLORBTN.
- */
- if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) {
- Control control = findThemeControl ();
- if (control != null) {
- RECT rect = new RECT ();
- OS.GetClientRect (handle, rect);
- control.drawThemeBackground (wParam, handle, rect);
- }
- }
- return result;
-}
-
LRESULT wmDrawChild (int wParam, int lParam) {
if ((style & SWT.ARROW) == 0) return super.wmDrawChild (wParam, lParam);
DRAWITEMSTRUCT struct = new DRAWITEMSTRUCT ();