diff options
author | Steve Northover | 2002-01-21 17:29:18 +0000 |
---|---|---|
committer | Steve Northover | 2002-01-21 17:29:18 +0000 |
commit | fe19c6b899c9d8b993e07c5615867efe06d6b5e9 (patch) | |
tree | 55e1e32adcb4697cf7e89dfb90f5a09c5d0c12af | |
parent | be6dda6904ee45b8fdeda581b0e429145ab145c5 (diff) | |
download | eclipse.platform.swt-fe19c6b899c9d8b993e07c5615867efe06d6b5e9.tar.gz eclipse.platform.swt-fe19c6b899c9d8b993e07c5615867efe06d6b5e9.tar.xz eclipse.platform.swt-fe19c6b899c9d8b993e07c5615867efe06d6b5e9.zip |
*** empty log message ***
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java index b53e891105..9cb5960927 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java @@ -185,11 +185,18 @@ void bringToTop () { }
static int checkStyle (int style) {
- if (!OS.IsWinCE) {
- if ((style & (SWT.MENU | SWT.MIN | SWT.MAX | SWT.CLOSE)) != 0) {
- style |= SWT.TITLE;
- }
+ if (OS.IsWinCE) {
+ /*
+ * Feature in WinCE PPC. WS_MINIMIZEBOX or WS_MAXIMIZEBOX
+ * are not supposed to be used. If they are, the result
+ * is a button which does not repaint correctly. The fix
+ * is to remove this style.
+ */
+ if ((style & SWT.MIN) != 0) style &= ~SWT.MIN;
+ if ((style & SWT.MAX) != 0) style &= ~SWT.MAX;
+ return style;
}
+
/*
* If either WS_MINIMIZEBOX or WS_MAXIMIZEBOX are set,
* we must also set WS_SYSMENU or the buttons will not
@@ -1130,6 +1137,7 @@ boolean traverseItem (boolean next) { int widgetExtStyle () {
int bits = 0;
+ if ((style & SWT.NO_TRIM) != 0) return bits;
if (OS.IsWinCE) {
if ((style & SWT.CLOSE) != 0) bits |= OS.WS_EX_CAPTIONOKBTN;
}
|