VS2008 double buffer drawing CMemDC correct use