]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/notebook.cpp
wxListCtrl in report/virtual modes seems to work
[wxWidgets.git] / src / os2 / notebook.cpp
index efb99e30e452d1fbd8f0c80fba06a963424dc6a9..5f4a9944ccf15f1ff3a8cd5ee0239444f0f9ba6d 100644 (file)
@@ -248,6 +248,25 @@ void wxNotebook::SetTabSize(const wxSize& sz)
 // wxNotebook operations
 // ----------------------------------------------------------------------------
 
+void wxNotebook::SetPageSize(const wxSize& size)
+{
+    // transform the page size into the notebook size
+    RECT rc;
+    rc.xLeft = rc.yTop = 0;
+    rc.xRight = size.x;
+    rc.yBottom = size.y;
+
+//    TabCtrl_AdjustRect(GetHwnd(), TRUE, &rc);
+
+    // and now set it
+    SetSize(rc.xRight - rc.xLeft, rc.yBottom - rc.yTop);
+}
+
+void wxNotebook::SetPadding(const wxSize& padding)
+{
+//    TabCtrl_SetPadding(GetHwnd(), padding.x, padding.y);
+}
+
 // remove one page from the notebook
 bool wxNotebook::DeletePage(int nPage)
 {