Make a global function a member one as it uses member variables and it's easier to use them directly instead of passing the object pointer to it all the time. See #14026. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775