From b680ba9596ace0f8e7e486a276975d4e92edea5c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 10 Feb 2020 13:42:03 +0100 Subject: [PATCH] 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. --- interface/wx/event.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/interface/wx/event.h b/interface/wx/event.h index c02abdff1c..35b97325df 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -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); };