Many a times we need the same user defined graphic in different applications like
MS-Word, MS-PowerPoint etc. Designing the same graphic again and again results in waste of time. The better idea is to save this graphic and use it whenever it is needed. We can save the graphic in a file. But this article shows a different way to save the graphic. This article shows how to and save a user created graphic in a clipart. Once saved in the clipart the user can insert it wherever and whenever he needs it. An object of
CMetaFileDC is created. Using this object CMetaFileDC::CreateEnhanced( ) function is called. In the
CreateEnhanced( ) function give the filename of '.emf' file which will get created as the second parameter. Draw the graphic in the metafile using the object of
CMetaFileDC. Once the '.emf' file is created it can be added to the clipart by following the steps given below.