GDI Sample Application The GDIDemo sample contains several examples of using GDI calls to generate graphics.