Make wxProgressDialog::Fit() work in native MSW version

This method is supposed to adjust the dialog size to its contents and
while the dialog increases automatically when using native
implementation under MSW, it doesn't shrink back on its own and so it's
still useful to allow Fit() to do it.

Update the sample to test Fit() too.
This commit is contained in:
Vadim Zeitlin
2017-10-27 01:34:10 +02:00
parent 0736bdfb28
commit 0473d14ef1
4 changed files with 26 additions and 1 deletions

View File

@@ -196,7 +196,8 @@ public:
conform to the length of the new message if desired. The dialog does
not do this automatically, except for the native MSW implementation
which does increase the dialog size if necessary (but still doesn't
shrink it back even if the text becomes shorter).
shrink it back even if the text becomes shorter and you need to call
Fit() explicitly if you want this to happen).
@param value
The new value of the progress meter. It should be less than or equal to