X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d9317033424d174e96f48d6bb3241cac1bdcf1bc..4a21ea9d9eec67383ffba7c86f7c413ddee28114:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index b199c98ab9..90edb491b3 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -688,6 +688,10 @@ wxNotebookPage *wxNotebook::DoRemovePage(size_t nPage) if ( !pageRemoved ) return NULL; + // hide the removed page to maintain the invariant that only the + // selected page is visible and others are hidden: + pageRemoved->Show(false); + TabCtrl_DeleteItem(GetHwnd(), nPage); if ( m_pages.IsEmpty() )