A wxWindowDC must be constructed if an application wishes to paint on the whole area of a window (client and decorations). This should normally be constructed as a temporary stack object; don't store a wxWindowDC object.
To draw on a window from inside OnPaint,stack obje
void SetConstraints(wxLayoutConstraints* constraints)
Sets the window to have the given layout constraints. The window will then own the object, and will take care of its deletion. If an existing layout constraints object is already owned by the window, it will be deleted.
Parameters
constraints
Remarks
You must call wxWindow::SetAutoLayout to tell a window to use the constraints automatically in OnSize; otherwise, you must override OnSize and call Layout explicitly.
void SetDropTarget(wxDropTarget* target)
Associates a drop target with this window.
If the window already has a drop target, it is deleted.
<