Hello.
I am troubled.
When I draw a screen, I use GDI+.

In GDI+, I perform PrintPrview.
However, it is displayed incorrectly when I make a metafile in CMetaFileDC and do PrintPreview.
BOOL CNxkCViewPPW :: OnPreparePrinting( CPrintInfo * pInfo )
{
:
:
:
:
CMetaFileDC dcEMF;
if( ! dcEMF.CreateEnhanced(
pDC ,
( ! strMetafileName.IsEmpty() )
? LPCTSTR(strMetafileName)
: NULL
,
rcEmfExtent,
NULL
)
)
{
ASSERT( FALSE );
throw 0;
}

There is a MetaFile command in GdiPlus.
Will it be displayed definitely if I use Class of GdiPlust-MeFile?
Gdiplus
http://msdn.microsoft.com/en-us/library/ms534077(VS.85).aspx
/**************************************************************************\
* Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
* Module Name:
* GdiplusMetafile.h
* Abstract:
* GDI+ Metafile class
\**************************************************************************/
#ifndef _GDIPLUSMETAFILE_H
#define _GDIPLUSMETAFILE_H
class Metafile : public Image
{
public:
friend class Image;
// Playback a metafile from a HMETAFILE
// If deleteWmf is TRUE, then when the metafile is deleted,
// the hWmf will also be deleted. Otherwise, it won’t be.
Metafile(IN HMETAFILE hWmf,
I want you to offer a sample.
Give my best regards