diff options
author | Steve Northover <steve> | 2008-02-22 17:28:44 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2008-02-22 17:28:44 +0000 |
commit | ddc10729ee051ee434691f99fa4cd21e29467100 (patch) | |
tree | f5358701b62802f39c5e04b1b38e1f51f69846d5 | |
parent | 7ea0920418457d40121c22d71bd74e62ff8ed0b5 (diff) | |
download | eclipse.platform.swt-ddc10729ee051ee434691f99fa4cd21e29467100.tar.gz eclipse.platform.swt-ddc10729ee051ee434691f99fa4cd21e29467100.tar.xz eclipse.platform.swt-ddc10729ee051ee434691f99fa4cd21e29467100.zip |
document Vista feature in ProgressBar
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ProgressBar.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ProgressBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ProgressBar.java index 0413df624a..5207567368 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ProgressBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ProgressBar.java @@ -305,6 +305,13 @@ public void setMinimum (int value) { */ public void setSelection (int value) { checkWidget (); + /* + * Feature in Vista. When the progress bar is not in + * a normal state, PBM_SETPOS does not set the position. + * This is undocumented. The fix is to temporarily + * set the state to PBST_NORMAL, set the position, then + * reset the state. + */ int state = 0; if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) { state = OS.SendMessage (handle, OS.PBM_GETSTATE, 0, 0); |