Do it generically in wxWindow and also provide a special version for wxGLCanvas for which the standard implementation doesn't work well.
Do it generically in wxWindow and also provide a special version for wxGLCanvas for which the standard implementation doesn't work well.