In Windows, if PropertySheet can't create some page it just skips it. This
commitc0b824d7de39e9c5c3805e1dece19740f4ed24bf
authorSerge Ivanov <sergei@corel.ca>
Fri, 25 Feb 2000 20:49:49 +0000 (25 20:49 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 25 Feb 2000 20:49:49 +0000 (25 20:49 +0000)
tree1e1436ecda33a29535e6f5ac2c6b6d8f71858812
parenta5402d896e4d6e204cd911796bf45b1a4341b4b8
In Windows, if PropertySheet can't create some page it just skips it. This
patch adds similar behaviour to Wine. It also adds some NULL checks.

<yuxi@corel.com>
Fix property sheet initialization bugs.

Matthew Robertson
The template was calling GetActiveIndex which was not being set in the
propsheet code, and the call was moved before we call SetActive -
because that's where we query for the Active Index.

Noomen Hamza
Resize property sheet to the largest dialog size.

Don Kelly
In the WM_INITDIALOG handler for the prop sheet, there is a call to
PROPSHEET_IsTooSmall() which, if it returns TRUE, calls
PROPSHEET_AdjustSize().  Contrary to its comment, .._AdjustSize() actually
aligns the sizes of the "largest" prop. sheet dialog template and the tab
control.  The IsTooSmall() call doesn't properly catch this mismatch.
Modified the function to return TRUE if the sizes mismatch and renamed it to
PROPSHEET_SizeMismatch() to reflect its proper use.
dlls/comctl32/propsheet.c