I have a propertysheet object containing a number of propertypages. I
am using MFC (VC6).
I have a number of misc controls on the first propertypage. I have a
similar number on a subsequent page, the first is a static text, the
second and third are buttons, the fourth a SysListView32. These are
implemented by manual creation in an (MFC) OnCreate handler. There
are addtional controls implemented via the typical resource template.
The SysListView32 create() is done with WS_VISIBLE absent. A routine
runs at the very beginning on the WM_INITDIALOG process which disables
(non static, non SysListView32) controls (identically on all pages.)
I then use a SetWindowPos() on the SysListView32, using
When the propertysheet becomes visible, if I first click a control
within the first page before clicking the tab of the subsequent page,
I don't get the SysListView32 painting correctly on the subsequent
propertypage. If I either, don't run the control disabling process or
I _don't_ click a control within the first page before selecting the
subsequent page, it paints correctly. In either case a further paint
fixes the problem.
If I set the WS_VISIBLE style in the initial Create() of the
SysListView32 it always paints correctly.