]>
git.saurik.com Git - wxWidgets.git/blob - interface/dcclient.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxPaintDC class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 A wxPaintDC must be constructed if an application wishes to paint on the
14 client area of a window from within an @b OnPaint event.
15 This should normally be constructed as a temporary stack object; don't store
16 a wxPaintDC object. If you have an OnPaint handler, you @e must create a
18 object within it even if you don't actually use it.
20 Using wxPaintDC within OnPaint is important because it automatically
21 sets the clipping area to the damaged area of the window. Attempts to draw
22 outside this area do not appear.
24 To draw on a window from outside @b OnPaint, construct a wxClientDC object.
26 To draw on the whole window including decorations, construct a wxWindowDC object
33 wxDC, wxMemoryDC, wxPaintDC, wxWindowDC, wxScreenDC
35 class wxPaintDC
: public wxWindowDC
39 Constructor. Pass a pointer to the window on which you wish to paint.
41 wxPaintDC(wxWindow
* window
);
49 A wxClientDC must be constructed if an application wishes to paint on the
50 client area of a window from outside an @b OnPaint event.
51 This should normally be constructed as a temporary stack object; don't store
54 To draw on a window from within @b OnPaint, construct a wxPaintDC object.
56 To draw on the whole window including decorations, construct a wxWindowDC object
63 wxDC, wxMemoryDC, wxPaintDC, wxWindowDC, wxScreenDC
65 class wxClientDC
: public wxWindowDC
69 Constructor. Pass a pointer to the window on which you wish to paint.
71 wxClientDC(wxWindow
* window
);
79 A wxWindowDC must be constructed if an application wishes to paint on the
80 whole area of a window (client and decorations).
81 This should normally be constructed as a temporary stack object; don't store
84 To draw on a window from inside @b OnPaint, construct a wxPaintDC object.
86 To draw on the client area of a window from outside @b OnPaint, construct a
89 To draw on the whole window including decorations, construct a wxWindowDC object
96 wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxScreenDC
98 class wxWindowDC
: public wxDC
102 Constructor. Pass a pointer to the window on which you wish to paint.
104 wxWindowDC(wxWindow
* window
);