X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f241653c17d39de2cce512bb8ecfba80b9ac0351..d1fabc121183800c237c8a1949494ea634c6796f:/src/palmos/frame.cpp diff --git a/src/palmos/frame.cpp b/src/palmos/frame.cpp index c81817af92..6015a059d3 100644 --- a/src/palmos/frame.cpp +++ b/src/palmos/frame.cpp @@ -183,6 +183,10 @@ void wxFrame::DoSetClientSize(int width, int height) // Get size *available for subwindows* i.e. excluding menu bar, toolbar etc. void wxFrame::DoGetClientSize(int *x, int *y) const { + wxSize size = GetSize(); + wxPoint pos = GetClientAreaOrigin(); + *x = size.x - pos.x - 1; + *y = size.y - pos.y - 1; } // ----------------------------------------------------------------------------