From 010f3b466f3e672b10cf01150a3add27f3930804 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 4 Jan 2014 21:58:56 +0000 Subject: [PATCH] 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 --- src/msw/notebook.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 7b7848b100..8ff84ab8a7 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -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);