File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,17 @@ void CTreePropertySheet::OnSelChanged(
207
207
int dwPage=m_cTreeCtrl.GetItemData (pNotify->itemNew .hItem );
208
208
LockWindowUpdate ();
209
209
if (GetPageIndex (GetActivePage ()) != dwPage) // NJG
210
+ {
211
+ /* Theming has these nice fades inbetween controls being disabled and enabled.
212
+ * That is all nice and well, but switching a page for the _first_ time since
213
+ * the dialog had been opened causes the dialog controls to be updated in plain
214
+ * sight - a rather visible and eye-catching affair once you are aware of it.
215
+ * Updating the dialog controls manually before switching to the active page
216
+ * causes these updates to be done while the user cannot see it. -JW
217
+ */
218
+ GetPage (dwPage)->UpdateDialogControls (this , false );
210
219
SetActivePage (dwPage);
220
+ }
211
221
UnlockWindowUpdate ();
212
222
213
223
// Prevent losing the focus when invoked by keyboard
You can’t perform that action at this time.
0 commit comments