X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..df1eb533d81423035acc214b538aabed49c66796:/src/msw/tabctrl.cpp

diff --git a/src/msw/tabctrl.cpp b/src/msw/tabctrl.cpp
index cec9af4086..0a83802f7b 100644
--- a/src/msw/tabctrl.cpp
+++ b/src/msw/tabctrl.cpp
@@ -21,7 +21,7 @@
 #endif
 
 #ifndef WX_PRECOMP
-#include "wx.h"
+#include "wx/wx.h"
 #endif
 
 #if defined(__WIN95__)
@@ -72,10 +72,6 @@ bool wxTabCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, cons
   	GetGValue(GetSysColor(COLOR_BTNFACE)), GetBValue(GetSysColor(COLOR_BTNFACE)));
   m_foregroundColour = *wxBLACK ;
 
-  m_defaultForegroundColour = *wxBLACK ;
-  m_defaultBackgroundColour = wxColour(GetRValue(GetSysColor(COLOR_BTNFACE)),
-  	GetGValue(GetSysColor(COLOR_BTNFACE)), GetBValue(GetSysColor(COLOR_BTNFACE)));
-
   SetName(name);
 
   int x = pos.x;
@@ -150,7 +146,7 @@ bool wxTabCtrl::MSWCommand(WXUINT cmd, WXWORD id)
   return FALSE;
 }
 
-bool wxTabCtrl::MSWNotify(WXWPARAM wParam, WXLPARAM lParam)
+bool wxTabCtrl::MSWNotify(WXWPARAM wParam, WXLPARAM lParam, WXLPARAM *result)
 {
 	wxTabEvent event(wxEVT_NULL, m_windowId);
 	wxEventType eventType = wxEVT_NULL;
@@ -158,37 +154,29 @@ bool wxTabCtrl::MSWNotify(WXWPARAM wParam, WXLPARAM lParam)
 	switch ( hdr1->code )
 	{
 		case TCN_SELCHANGE:
-		{
 			eventType = wxEVT_COMMAND_TAB_SEL_CHANGED;
-			event.SetInt( (int) LOWORD(wParam) ) ;
 			break;
-		}
+
 		case TCN_SELCHANGING:
-		{
 			eventType = wxEVT_COMMAND_TAB_SEL_CHANGING;
-			event.SetInt( (int) LOWORD(wParam) ) ;
 			break;
-		}
+
         case TTN_NEEDTEXT:
         {
             // TODO
 //            if (tool->m_shortHelpString != "")
 //                ttText->lpszText = (char *) (const char *)tool->m_shortHelpString;
-			return wxControl::MSWNotify(wParam, lParam);
-            break;
         }
 
 		default :
-			return wxControl::MSWNotify(wParam, lParam);
-			break;
+			return wxControl::MSWNotify(wParam, lParam, result);
 	}
 
 	event.SetEventObject( this );
 	event.SetEventType(eventType);
+	event.SetInt( (int) LOWORD(wParam) ) ;
 
-	if ( !ProcessEvent(event) )
-		return FALSE;
-  	return TRUE;
+	return ProcessEvent(event);
 }
 
 // Responds to colour changes, and passes event on to children.
@@ -196,8 +184,6 @@ void wxTabCtrl::OnSysColourChanged(wxSysColourChangedEvent& event)
 {
     m_backgroundColour = wxColour(GetRValue(GetSysColor(COLOR_BTNFACE)),
   	    GetGValue(GetSysColor(COLOR_BTNFACE)), GetBValue(GetSysColor(COLOR_BTNFACE)));
-    m_defaultBackgroundColour = wxColour(GetRValue(GetSysColor(COLOR_BTNFACE)),
-  	    GetGValue(GetSysColor(COLOR_BTNFACE)), GetBValue(GetSysColor(COLOR_BTNFACE)));
 
     // Remap the buttons
 //    CreateTools();