You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.3 KiB
61 lines
1.3 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT: Laserguard libraries
|
|
// SUBSYSTEM: MFC support library
|
|
// FILE: LgMetaFile.h
|
|
// AUTHOR: Chizhevskiy Sergey
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of CLgMetaFile
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef __LG__METAFILE__H__INCLUDED__
|
|
#define __LG__METAFILE__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "..\LgImageWMF.h"
|
|
|
|
#define CLgMetaFile CLgImageEMF
|
|
/*
|
|
public:
|
|
CLgMetaFile();
|
|
virtual ~CLgMetaFile();
|
|
|
|
public:
|
|
BOOL Load( LPCTSTR pFileName );
|
|
|
|
public:
|
|
const SIZE& GetSize() const { return m_Size; }
|
|
const HENHMETAFILE GetSafeHandle() const { return m_hHandle; }
|
|
operator HENHMETAFILE() const { return GetSafeHandle(); }
|
|
|
|
private:
|
|
#pragma pack(1)
|
|
struct APMFILEHEADER
|
|
{
|
|
DWORD Key;
|
|
SHORT Handle;
|
|
SMALL_RECT Box;
|
|
WORD Inch;
|
|
DWORD Reserved;
|
|
WORD CheckSum;
|
|
};
|
|
#pragma pack()
|
|
WORD ComputeAldusChecksum( APMFILEHEADER* pMFH );
|
|
|
|
private:
|
|
BOOL LoadWMF( LPCTSTR pFileName );
|
|
BOOL LoadEMF( LPCTSTR pFileName );
|
|
|
|
private:
|
|
HENHMETAFILE m_hHandle;
|
|
SIZE m_Size;
|
|
};
|
|
*/
|
|
#endif
|