CDC::FromHandle is static and it accepts HDC as an imput. It only means MFC has a global array that consists some HDC, so it can returns the CDC*, and if it is not found, according to MS, it will create a temporary CDC and attach to it.
does anyone know when the array been created ? Or does CDC::FromHandle search all CWnd object (enum from the parent of caller) and try to find the matching HDC?
thx