wxMemoryDC::wxMemoryDC

void wxMemoryDC(void)

Constructs a new memory device context.

void wxMemoryDC(wxCanvasDC *oldDC)

Constructs a new memory device context with similar attributes to the given canvas device context.

Use the Ok member to test whether the constructor was successful in creating a useable device context. Don't forget to select a bitmap into the DC before drawing on it.