WXUNUSED()

From WxWiki
Revision as of 19:36, 19 October 2018 by Tierra (talk | contribs) (Text replacement - "<source>" to "<syntaxhighlight lang="cpp">")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

WXUNUSED is a macro you'll use for the wxEvent parameter of a hollow event handler to make some compilers not to complain about unused parameters. This simple concept used to appear sometimes a problem for beginners because it seems to have been never explained anywhere openly before.

Usage example

void MyFrame::OnExit( wxEvent& WXUNUSED(event) )
{
// Do Something
}



~Vik Karabin vikentii.karabin at gmail.com