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.4 KiB
61 lines
1.4 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgsStateWnd.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgsStateWnd.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __LGS__STATE__WND__H__INCLUDED__
|
|
#define __LGS__STATE__WND__H__INCLUDED__
|
|
|
|
#pragma once
|
|
|
|
#include "GenericWnd.h"
|
|
#include "LgMemoryDC.h"
|
|
|
|
class CLgsStateWnd : public CGenericWnd
|
|
{
|
|
public:
|
|
CLgsStateWnd();
|
|
virtual ~CLgsStateWnd();
|
|
|
|
public:
|
|
BOOL Create( HWND hParent, INT x, INT y, INT cx, INT cy );
|
|
|
|
public:
|
|
void SetStudyMode( BOOL bStudyMode );
|
|
void SetLowPowerMode( BOOL bLowPowerMode );
|
|
void Step( INT nStep = -1 );
|
|
|
|
protected:
|
|
void Draw();
|
|
|
|
protected:
|
|
virtual LRESULT OnSize( WPARAM, LPARAM );
|
|
virtual LRESULT OnPaint( WPARAM, LPARAM );
|
|
virtual LRESULT OnDestroy( WPARAM, LPARAM );
|
|
virtual LRESULT OnTimer( WPARAM, LPARAM );
|
|
|
|
private:
|
|
CLgMemoryDC m_MemoryDC;
|
|
|
|
private:
|
|
BOOL m_bStudyMode;
|
|
BOOL m_bLowPowerMode;
|
|
BOOL m_bLowPowerModeBlink;
|
|
|
|
private:
|
|
enum { STEPS = 8, DISCONNECTION = 8, STUDY = 9, POWER = 10, ICON_COUNT = 11 };
|
|
HICON m_pIcon[ ICON_COUNT ];
|
|
|
|
private:
|
|
INT m_nStep;
|
|
};
|
|
|
|
#endif
|