Old fashion design for PC-104
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.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: Background.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of Background.h
//----------------------------------------------------------------------------
#if !defined(AFX_BACKGROUND_H__8F82EE14_0EA6_4AAD_8671_B042B7DF5DF0__INCLUDED_)
#define AFX_BACKGROUND_H__8F82EE14_0EA6_4AAD_8671_B042B7DF5DF0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
#include "..\..\LgLib\MFC\LgMetaFile.h"
#include "..\..\LgLib\MFC\MemoryDC.h"
#include "..\..\LgLib\MFC\FileGroup.h"
class CBackground {public: CBackground(); virtual ~CBackground();
public: BOOL Load( LPCTSTR pFileName, CLgFileGroup *pFileGroup ); BOOL Draw( CDC *pDC, CRect *pRect ); const CSize& GetSize() const { return m_Size; }
private: enum E_Type { ET_GENERIC, ET_BITMAP, ET_METAFILE };
private: CSize m_Size; CLgMetaFile m_MetaFile; CLgMemoryDC m_MemoryDC; E_Type m_Type; LPBYTE m_pBuffer; INT m_nBufferSize; OSVERSIONINFO m_VersionInfo; CRITICAL_SECTION m_CritSection;}; #endif
|