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.8 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 13/04/2001
// PROJECT:
// SUBSYSTEM:
// FILE: CameraDlg.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of CameraDlg.h
//----------------------------------------------------------------------------
#if !defined(AFX_CAMERADLG_H__C2B46349_982E_4FB6_891C_68A54214AA45__INCLUDED_)
#define AFX_CAMERADLG_H__C2B46349_982E_4FB6_891C_68A54214AA45__INCLUDED_
#include "..\DLIB\SensorArray.h" // Added by ClassView
#include "..\DLIB\VideoWnd.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CameraDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CCameraDlg dialog
class CCameraDlg : public CDialog
{
// Construction
public:
LRESULT WindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
void SetSensorArray( CSensorArray *pSensorArray, CVideoWnd *pVideoWnd );
CCameraDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CCameraDlg();
// Dialog Data
//{{AFX_DATA(CCameraDlg)
enum { IDD = IDD_CAMERA_DLG };
CButton m_Lock;
CStatic m_CameraImage;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCameraDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CCameraDlg)
afx_msg void OnButtonNext();
virtual BOOL OnInitDialog();
afx_msg void OnDestroy();
afx_msg void OnButtonCameraPrev();
afx_msg void OnButtonSnapshot();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnMove(int x, int y);
afx_msg void OnCheckCameraLock();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void CheckCamera();
// CVideoWnd m_VideoWnd;
CSensorArray *m_pSensorArray;
struct VIDEO
{
CWnd *pParent;
CVideoWnd *pVideoWnd;
CRect rect;
}m_Video;
int m_CurrentCamera;
BOOL m_bVideoConnected;
private:
void ChangeCamera();
friend LRESULT CALLBACK WindowProcButton( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
{
CCameraDlg *pThis = (CCameraDlg*)::GetWindowLong( hWnd, GWL_USERDATA );
if( pThis ) return pThis->WindowProc( hWnd, uMsg, wParam, lParam );
return ::DefWindowProc( hWnd, uMsg, wParam, lParam );
}
WNDPROC m_pWndProc;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CAMERADLG_H__C2B46349_982E_4FB6_891C_68A54214AA45__INCLUDED_)