summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorChristophe Cornu <ccornu>2004-10-06 16:57:30 +0000
committerChristophe Cornu <ccornu>2004-10-06 16:57:30 +0000
commita894bcf00ed029b8f4314e3cfb3786d36724b105 (patch)
tree71ccd045c47a5c96dadfc6c6cd41ca97bcaa85e6 /bundles
parent59323150eb2e2d08c31aaf8e994356f4b08298fe (diff)
downloadeclipse.platform.swt-a894bcf00ed029b8f4314e3cfb3786d36724b105.tar.gz
eclipse.platform.swt-a894bcf00ed029b8f4314e3cfb3786d36724b105.tar.xz
eclipse.platform.swt-a894bcf00ed029b8f4314e3cfb3786d36724b105.zip
72075
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java
index f0054c36a0..fc3a234662 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java
@@ -254,6 +254,14 @@ void createHandle () {
*/
int hwndToolTip = OS.SendMessage (handle, OS.TCM_GETTOOLTIPS, 0, 0);
OS.SendMessage (hwndToolTip, OS.TTM_SETMAXTIPWIDTH, 0, 0x7FFF);
+
+ /*
+ * Feature in WinCE Pocket PC. Tab folder must have a flat look
+ * that is enabled by specifying the version of the Pocket PC library.
+ */
+ if (OS.IsPPC) {
+ OS.SendMessage (handle, OS.CCM_SETVERSION, 0x020c /*COMCTL32_VERSION*/, 0);
+ }
}
void createWidget () {
@@ -656,6 +664,7 @@ int widgetStyle () {
int bits = super.widgetStyle () | OS.WS_CLIPCHILDREN;
if ((style & SWT.NO_FOCUS) != 0) bits |= OS.TCS_FOCUSNEVER;
if ((style & SWT.BOTTOM) != 0) bits |= OS.TCS_BOTTOM;
+ if (OS.IsPPC) bits |= OS.TCS_BOTTOM;
return bits | OS.TCS_TABS | OS.TCS_TOOLTIPS;
}