diff options
author | Christophe Cornu <ccornu> | 2004-10-06 16:57:30 +0000 |
---|---|---|
committer | Christophe Cornu <ccornu> | 2004-10-06 16:57:30 +0000 |
commit | a894bcf00ed029b8f4314e3cfb3786d36724b105 (patch) | |
tree | 71ccd045c47a5c96dadfc6c6cd41ca97bcaa85e6 /bundles | |
parent | 59323150eb2e2d08c31aaf8e994356f4b08298fe (diff) | |
download | eclipse.platform.swt-a894bcf00ed029b8f4314e3cfb3786d36724b105.tar.gz eclipse.platform.swt-a894bcf00ed029b8f4314e3cfb3786d36724b105.tar.xz eclipse.platform.swt-a894bcf00ed029b8f4314e3cfb3786d36724b105.zip |
72075
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; } |