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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user