CreateThemePainter(theme, medium, width, height)
Returns the ThemePainter object, a tool for painting a theme. The theme argument specifies a theme to paint. The medium argument specifies a graphics medium that is used for painting. A graphics medium is specified by a constant given in the "Graphics Medium Types" table. The width and height integer arguments specify the width and the height of the graphics medium.