X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd71308fc89eac2dd212b715eba68a993fa78f53..cce4b3fe2b05e1d928d7a5930c33c624b2f3a667:/src/msw/statbox.cpp diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index 63ddabb570..0be462b295 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -89,7 +89,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id, // Subclass again for purposes of dialog editing mode SubclassWin(GetHWND()); - SetFont(* parent->GetFont()); + SetFont(parent->GetFont()); SetSize(x, y, width, height); ShowWindow(wx_button, SW_SHOW); @@ -131,10 +131,10 @@ void wxStaticBox::SetSize(int x, int y, int width, int height, int sizeFlags) int cy; int cyf; - wxGetCharSize(GetHWND(), &cx, &cy,GetFont()); + wxGetCharSize(GetHWND(), &cx, &cy, & this->GetFont()); GetTextExtent(wxGetWindowText(m_hWnd), ¤t_width, &cyf, - NULL,NULL,GetFont()); + NULL,NULL, & this->GetFont()); if ( w1 < 0 ) w1 = current_width + 3*cx; if ( h1 < 0 )