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: LgUISiteClock.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of LgUISiteClock.cpp
//----------------------------------------------------------------------------
#include "stdafx.h"
#include "LgUISiteClock.h"
#include "..\UICamera\LgUICameraVideoWnd.h"
CLgUISiteClock::CLgUISiteClock(){}
CLgUISiteClock::~CLgUISiteClock(){ Destroy();}
BEGIN_MESSAGE_MAP(CLgUISiteClock, CWnd ) //{{AFX_MSG_MAP(CLgUISiteClock)
ON_WM_TIMER() //}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL CLgUISiteClock::Create(){ CString strClassName = ::AfxRegisterWndClass( CS_HREDRAW | CS_VREDRAW, NULL, NULL, NULL ); CRect rect( 0, 0, 1, 1 ); if( !CWnd::CreateEx( 0, strClassName, NULL, WS_OVERLAPPED, rect, NULL, 0 ) ) return FALSE;
// set timer
CWnd::SetTimer( 0, 100, NULL );
return TRUE;}
BOOL CLgUISiteClock::Destroy(){ return DestroyWindow();}
BOOL CLgUISiteClock::DestroyWindow(){ CWnd::KillTimer( 0 );
return CWnd::DestroyWindow();}
void CLgUISiteClock::OnTimer( UINT nIDEvent ){ CLgArray< CLgLink<CLgUISiteCamera,CLgUISiteClock>* >& arrCamera = *this;
for( INT i = 0; i < arrCamera.GetCount(); i++ ) { CLgUISiteCamera *pCamera = *arrCamera[i];
ASSERT( pCamera );
pCamera->OnUISiteClock(); }
CWnd::OnTimer( nIDEvent );}
|