wxCanvas::wxCanvas

void wxCanvas(wxFrame *parent, int x = -1, int y = -1, int width = -1, int height = -1, int style = wxRETAINED, char *name)

Constructor.

The parameters x, y, width and height can be omitted on construction if the position and size will later be set (for example by a application frame's OnSize callback, or if there is only one subwindow for the frame, in which case the subwindow fills the frame).

The style parameter may be a combination (using the C++ bitwise 'or' operator) of the following flags:

The name parameter is used to associate a name with the canvas, allowing the application user to set Motif resources for individual canvases.