WMFDCODE: Decodes Normal, Placeable, and CLP Metafiles

WMFDCODE decodes three types of metafiles: normal metafiles, "placeable" metafiles, and metafiles that are saved on the clipboard as CLP files. WMFDCODE enumerates and plays all or a specified range of records in a metafile.

Choose the File Open command from the WMFDCODE main window to read in a metafile. Select either BIRD.WMF or BALLON.CLP, which are provided as examples.

The View Headers command displays information on the metafile header, the METAFILEPICT data structure, and the placeable WMF header (if available). The View List command lists all of the records in the metafile. You can select and play any combination of records from the list to debug the contents of a metafile. The View Clear command erases the metafile that is currently displayed.

The Play Destination command lets you play each record to the screen or to a user-named metafile. The Play All command plays all metafile records to the selected destination. The Play Step command examines the contents of records and lets you play or skip each record. You may step through all records or enter a range of records in hexadecimal, decimal, or character format.

WMFDCODE was built and tested under Microsoft(R) Windows(TM) version 3.1.

KEYWORDS: EnableMenuItem; GetMetaFile; SetCursor; LoadCursor; PlayMetaFileToDest; CheckMenuItem; GlobalAlloc; GlobalUnlock; GlobalFree; MakeProcInstance; DialogBox; FreeProcInstance; MessageBox; lstrcat; SendDlgItemMessage; PlayMetaFileRecord; wsprintf; MessageBox; MakeProcInstance; Escape; CreateDialog; SetMapMode; SetViewportOrg; SetViewportExt; EnableWindow; PlayMetaFile; DestroyWindow; DeleteDC

{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the wmfdcode project." /C"samples}