Explicitly document that wxPaintEvent ctor must not be used

Objects of this type are only supposed to be created by wxWidgets
itself and not by user code.
This commit is contained in:
Vadim Zeitlin 2020-02-10 13:42:03 +01:00
parent 452c8dcfa3
commit b680ba9596

View File

@ -2215,7 +2215,12 @@ class wxPaintEvent : public wxEvent
{
public:
/**
Constructor.
Constructor for exclusive use of wxWidgets itself.
Note that the objects of this class can @em not be created from
application code, they're only created by the library itself. If you
need a window to be repainted, use wxWindow::Refresh() instead of
trying to manually create an event of this class.
*/
wxPaintEvent(int id = 0);
};