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.
58 lines
1.5 KiB
58 lines
1.5 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgUIMapBackground.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgUIMapBackground.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __LG__MAP__BACKGROUND__H__INCLUDED__
|
|
#define __LG__MAP__BACKGROUND__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "..\MFC\LgMetaFile.h"
|
|
#include "..\MFC\MemoryDC.h"
|
|
#include "..\Templ.h"
|
|
#include "..\LgLink.h"
|
|
#include "..\MFC\FileGroup.h"
|
|
|
|
class CLgUIMapBackgroundThread;
|
|
|
|
class CLgUIMapBackground :
|
|
public CLgLink<CLgUIMapBackground,CLgUIMapBackgroundThread>
|
|
{
|
|
public:
|
|
CLgUIMapBackground();
|
|
virtual ~CLgUIMapBackground();
|
|
|
|
public:
|
|
enum E_Type { ET_GENERIC, ET_BITMAP, ET_METAFILE };
|
|
|
|
public:
|
|
BOOL Load( LPCTSTR pFileName, CLgFileGroup *pFileGroup, double dMeterScale );
|
|
BOOL Load( E_Type eType, PVOID pImage, double dMeterScale );
|
|
BOOL Draw( CDC *pDC, CRect *pRect );
|
|
|
|
const CSize& GetSize() const { return m_Size; }
|
|
|
|
const double GetMeterScale() const { return m_dMeterScale; }
|
|
|
|
private:
|
|
CSize m_Size;
|
|
CLgMetaFile m_MetaFile;
|
|
CLgMemoryDC m_MemoryDC;
|
|
E_Type m_Type;
|
|
OSVERSIONINFO m_VersionInfo;
|
|
CRITICAL_SECTION m_CritSection;
|
|
double m_dMeterScale;
|
|
};
|
|
|
|
#endif
|