use wxDC#IsOk instead of (at least in wxwidget3.0 non-existent) wxDC#Ok

This fixes a compile error for me.