Correct misleading wxMenuEvent::GetMenu() documentation

Don't claim that the menu is never null, as this does happen when
opening/closing the window system menu under MSW.

Closes #18443.
This commit is contained in:
Vadim Zeitlin
2019-07-13 22:02:32 +02:00
parent 8a69ec7c4e
commit 4bd78b06a0

View File

@@ -4449,8 +4449,9 @@ public:
This method can only be used with the @c OPEN and @c CLOSE events.
The returned value is never @NULL in the ports implementing this
function, which currently includes all the major ones.
Note that the returned value can be @NULL if the menu being opened
doesn't have a corresponding wxMenu, e.g. this happens when opening the
system menu in wxMSW port.
*/
wxMenu* GetMenu() const;