]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/tabctrl.cpp
fix typo in r57455 which totally broke modal dialogs display (close #10291)
[wxWidgets.git] / src / os2 / tabctrl.cpp
index 8c35755897f7d42611598c9164a419db1c4914d7..2d4191e90d8518eeb141beee190814fc16aa1e1b 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        tabctrl.cpp
+// Name:        src/os2/tabctrl.cpp
 // Purpose:     wxTabCtrl
 // Author:      David Webster
 // Modified by:
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#if wxUSE_TAB_DIALOG
+
 #ifndef WX_PRECOMP
-#include "wx/wx.h"
+    #include "wx/wx.h"
+    #include "wx/app.h"
 #endif
 
 #include "malloc.h"
@@ -23,9 +26,8 @@
 
 //#include "wx/msw/dib.h"
 #include "wx/os2/tabctrl.h"
-#include "wx/app.h"
 #include "wx/os2/private.h"
-#include "wx/generic/imaglist.h"
+#include "wx/imaglist.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
 
@@ -79,7 +81,7 @@ bool wxTabCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, cons
 
     SubclassWin((WXHWND) hWndTabCtrl);
 
-    return FALSE;
+    return false;
 }
 
 wxTabCtrl::~wxTabCtrl()
@@ -354,3 +356,5 @@ wxTabEvent::wxTabEvent(wxEventType commandType, int id)
            :wxCommandEvent(commandType, id)
 {
 }
+
+#endif // wxUSE_TAB_DIALOG