fixes to wxWindowDC flipping+clipping when painting on hidden windows or windows not being painted at the moment

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2006-09-19 14:14:21 +00:00
parent 96c9f0f677
commit 4dc9a81d7e
2 changed files with 85 additions and 21 deletions

View File

@@ -22,7 +22,7 @@ class WXDLLIMPEXP_CORE wxWindow;
class WXDLLIMPEXP_CORE wxWindowDC : public wxDC
{
public:
wxWindowDC() : m_win(NULL) {}
wxWindowDC() : m_shouldFlip(false) {}
wxWindowDC(wxWindow *win);
virtual ~wxWindowDC();
@@ -32,7 +32,7 @@ protected:
void InitForWin(wxWindow *win, const wxRect *rect);
private:
wxWindow *m_win; // the window the DC paints on
bool m_shouldFlip; // flip the surface when done?
DECLARE_DYNAMIC_CLASS(wxWindowDC)
DECLARE_NO_COPY_CLASS(wxWindowDC)