In HDC HDC=GetDC (HWND) of the equipment set of attributes do not affect other HDC, so be sure to use the same HDC when drawing, If outside the sub function set HDC properties, draw in child use this property in a function, must pass the HDC variables, After the releaseDC (HDC),