separate common class glWndBase