M.Mahroz 0 Newbie Poster

Images in MFC are created in OnDraw function. We have to give " pDC->m_hDC " in parameter if we want to draw an image.. Problem is that we can get pDC only in our OnDraw function. Now if we want to draw images outside that OnDraw then we need to create a pointer to "CDC" type to get "m_hDC" from it. Some People said use code CDC * dc = getDC(); but it says getDC() is undefined. so plzz guide me what to do.

Main Point is that i want an initialized pointer to CDC in order to use it any where.