made GetClippingBox() work even for clipping region (pre)set by Windows and not only for clipping regions set using our own SetClippingXXX() functions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-05-05 22:41:54 +00:00
parent 55e9fa681e
commit 2e76da5450
2 changed files with 27 additions and 1 deletions

View File

@@ -118,6 +118,13 @@ public:
{
m_hDC = dc;
m_bOwnsDC = bOwnsDC;
// we might have a pre existing clipping region, make sure that we
// return it if asked -- but avoid calling ::GetClipBox() right now as
// it could be unnecessary wasteful
m_clipping = true;
m_clipX1 =
m_clipX2 = 0;
}
const wxBitmap& GetSelectedBitmap() const { return m_selectedBitmap; }
@@ -182,6 +189,8 @@ protected:
{
GetClippingBox(x, y, width, height);
}
virtual void DoGetClippingBox(wxCoord *x, wxCoord *y,
wxCoord *w, wxCoord *h) const;
virtual void DoGetSize(int *width, int *height) const;
virtual void DoGetSizeMM(int* width, int* height) const;