wxRuby Documentation Home


A WindowDC must be constructed if an application wishes to paint on the whole area of a window (client and decorations such as the toolbar). This class is Windows only.

To draw on a window from inside OnPaint, construct a PaintDC object.

To draw on the client area of a window from outside OnPaint, construct a ClientDC object.

Derived from


See also

DC, MemoryDC, PaintDC, ClientDC, ScreenDC



WindowDC.new(Window window)

Constructor. Pass a pointer to the window on which you wish to paint.

[This page automatically generated from the Textile source at Wed Sep 09 02:21:33 +0100 2009]