move getScreenSize as a static method of CForm