wxwidgets snippet