]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/tabmdi.cpp
removed a bunch of wxCHECK_VERSION(2,7,0)'s because aui isn't 2.6.x-backportable...
[wxWidgets.git] / src / aui / tabmdi.cpp
index 8680825a531298b1ed578c320b29f86e7a524436..7c4ccbcd7bb26361b3a1c54d794aa907a67aaa8e 100644 (file)
@@ -545,7 +545,7 @@ void wxAuiMDIChildFrame::SetIcon(const wxIcon& icon)
     
     wxBitmap bmp;
     bmp.CopyFromIcon(m_icon);
-    
+        
     wxAuiMDIClientWindow* pClientWindow = pParentFrame->GetClientWindow();
     if (pClientWindow != NULL)
     {
@@ -697,6 +697,11 @@ bool wxAuiMDIClientWindow::CreateClient(wxAuiMDIParentFrame* parent, long style)
 {
     SetWindowStyleFlag(style);
 
+    wxSize caption_icon_size = 
+            wxSize(wxSystemSettings::GetMetric(wxSYS_SMALLICON_X),
+                   wxSystemSettings::GetMetric(wxSYS_SMALLICON_Y));
+    SetUniformBitmapSize(caption_icon_size);
+    
     if (!wxAuiNotebook::Create(parent,
                                wxID_ANY,
                                wxPoint(0,0),