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.
 
 
 
 
 

99 lines
2.1 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: ProgramSkin.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of ProgramSkin.h
//----------------------------------------------------------------------------
#ifndef __PROGRAM__SKIN__H__INCLUDED__
#define __PROGRAM__SKIN__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CLgSkin
{
public:
CLgSkin();
virtual ~CLgSkin();
public:
typedef struct SKIN
{
HBITMAP hBitmap;
RECT rect;
}SKIN, *PSKIN;
public:
void Destroy();
BOOL GetSkin( INT nSkinID, SKIN& skin );
protected:
typedef struct SKIN_INI
{
INT nID;
LPCTSTR pSectionName;
LPCTSTR pImageName;
UINT uDefaultImage;
LPCTSTR pRectName;
RECT pDefaultRect;
}SKIN_INI, *PSKIN_INI;
protected:
BOOL Load( PSKIN_INI pSkin, INT nSkinCount, LPCTSTR pIniFileName, HINSTANCE hInstance );
private:
PSKIN m_pSkin;
INT m_nSkinCount;
};
class CProgramSkin :
public CLgSkin
{
public:
enum
{
SKIN_CONTROL = 0,
SKIN_CONTROL_VIDEO = 1,
SKIN_CONTROL_LOCATOR = 2,
SKIN_CONTROL_SOUND_ON = 3,
SKIN_CONTROL_SOUND_OFF = 4,
SKIN_CONTROL_CLEAR = 5,
SKIN_CONTROL_RESET = 6,
SKIN_CONTROL_MASK = 7,
SKIN_CONTROL_SENSITIVITY = 8,
SKIN_CONTROL_PTZ = 9,
SKIN_CONTROL_QUALITY = 10,
SKIN_CONTROL_REPORT = 11,
SKIN_CONTROL_PTZ_TILT = 12,
SKIN_REPORT = 13,
SKIN_REPORT_TREE = 14,
SKIN_REPORT_LOCATOR = 15,
SKIN_REPORT_TEXT = 16,
SKIN_REPORT_IMAGE = 17,
SKIN_REPORT_IMAGE_SLIDER = 18,
SKIN_REPORT_PREVIEW = 19,
SKIN_REPORT_PREVIEW_SLIDER = 20,
SKIN_REPORT_DETECTION = 21,
};
public:
BOOL Load( LPCTSTR pIniFileName, HINSTANCE hInstance );
private:
static const SKIN_INI c_pSkinIni[];
static const INT c_nSkinIniCount;
};
#endif