Remove unnecessary ::SetWindowLong() call in wxMSW wxNotebook code.
There is no point in manually resetting WS_VISIBLE style before calling wxWindow::Show(false) which does it too. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
169b3be0ee
commit
010f3b466f
@ -702,11 +702,6 @@ bool wxNotebook::InsertPage(size_t nPage,
|
||||
|
||||
// hide the page: unless it is selected, it shouldn't be shown (and if it
|
||||
// is selected it will be shown later)
|
||||
HWND hwnd = GetWinHwnd(pPage);
|
||||
SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) & ~WS_VISIBLE);
|
||||
|
||||
// this updates internal flag too -- otherwise it would get out of sync
|
||||
// with the real state
|
||||
pPage->Show(false);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user