Added style WS_VISIBLE to fix mode change issues with focus.