diff options
Diffstat (limited to 'bundles')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java | 9 |
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; } |