X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/409c9842c71df526bcfbf1cf5ce80067b09d4d97..2b8f5a2488b051daf6f9c0d161e57e0d1dabeab0:/src/os2/statbox.cpp?ds=inline diff --git a/src/os2/statbox.cpp b/src/os2/statbox.cpp index c88b00c999..1911f67045 100644 --- a/src/os2/statbox.cpp +++ b/src/os2/statbox.cpp @@ -34,7 +34,7 @@ END_EVENT_TABLE() /* * Group box */ - + bool wxStaticBox::Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos, @@ -93,10 +93,10 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id, return FALSE; } -wxSize wxStaticBox::DoGetBestSize() +wxSize wxStaticBox::DoGetBestSize() const { int cx, cy; - wxGetCharSize(GetHWND(), &cx, &cy, &GetFont()); + wxGetCharSize(GetHWND(), &cx, &cy, (wxFont*)&GetFont()); int wBox; GetTextExtent(wxGetWindowText(m_hWnd), &wBox, &cy); @@ -178,6 +178,8 @@ void wxStaticBox::OnEraseBackground(wxEraseEvent& event) MRESULT wxStaticBox::OS2WindowProc(HWND hwnd, WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) { + // TODO: +/* if ( nMsg == WM_NCHITTEST) { int xPos = LOWORD(lParam); // horizontal position of cursor @@ -190,6 +192,7 @@ MRESULT wxStaticBox::OS2WindowProc(HWND hwnd, WXUINT nMsg, WXWPARAM wParam, WXLP if (yPos < 10) return (long)HTCLIENT; } +*/ return wxControl::OS2WindowProc(hwnd, nMsg, wParam, lParam); }