]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/notebook.cpp
Patch from OSAF that maintains radio button selection if Realize is recalled.
[wxWidgets.git] / src / msw / notebook.cpp
index 3f26c2a6ebeecb0c9f4427d9d1e241ed0362afdf..dcf8118edc1318b63ad834d95a3d5f57b48ddf83 100644 (file)
@@ -258,6 +258,13 @@ bool wxNotebook::Create(wxWindow *parent,
                         long style,
                         const wxString& name)
 {
+#ifdef __WXWINCE__
+    // Not sure why, but without this style, there is no border
+    // around the notebook tabs.
+    if (style & wxNB_FLAT)
+        style |= wxBORDER_SUNKEN;
+#endif
+    
     // comctl32.dll 6.0 doesn't support non-top tabs with visual styles (the
     // control is simply not rendered correctly), so disable them in this case
     const int verComCtl32 = wxApp::GetComCtl32Version();