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: 13/04/2001
// PROJECT:
// SUBSYSTEM:
// FILE: EventsDlg.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of EventsDlg.h
//----------------------------------------------------------------------------
#if !defined(AFX_EVENTSDLG_H__9E405D40_7759_11D4_A1FB_00508B9DC668__INCLUDED_)
#define AFX_EVENTSDLG_H__9E405D40_7759_11D4_A1FB_00508B9DC668__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// EventsDlg.h : header file
//
#include "EventQueue.h"
/////////////////////////////////////////////////////////////////////////////
// CEventsDlg dialog
class CEventsDlg : public CDialog{// Construction
public: void SetEventQueue( CEventQueue* pEventQueue ); void SetSensorArray(CSensorArray *pSensorArray); CEventsDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CEventsDlg)
enum { IDD = IDD_EVENTS_DLG }; //}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEventsDlg)
protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CEventsDlg)
afx_msg void OnMoving(UINT fwSide, LPRECT pRect); afx_msg void OnCheckPrint(); virtual BOOL OnInitDialog(); afx_msg void OnDestroy(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnSizing(UINT fwSide, LPRECT pRect); afx_msg void OnTimer(UINT nIDEvent); //}}AFX_MSG
DECLARE_MESSAGE_MAP()private: friend static LRESULT CALLBACK WndProcEvent( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) { CEventsDlg *self = (CEventsDlg*)::GetWindowLong( hWnd, GWL_USERDATA ); if( self ) return self->WndProcEvent( hWnd, uMsg, wParam, lParam ); return ::DefWindowProc( hWnd, uMsg, wParam, lParam ); }
LRESULT WndProcEvent( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); LRESULT OnWMSensorEvent(WPARAM wParam, LPARAM lParam); LRESULT OnWMSocketEvent(WPARAM wParam, LPARAM lParam);private: virtual void OnOK() {} virtual void OnCancel() {}private: CEventQueue* m_pEventQueue; void PrintLine( CString& line ); CDC m_PrintDC; BOOL m_bPrint; INT m_nPrintCount; int m_nFontHeight; CFont *m_pFont; void PrepareOverlay(); CDC m_OverlayDC; CBitmap m_OverlayBitmap; CBitmap* m_pOverlayBitmapOld;
CSensorArray *m_pSensorArray; BOOL m_bChanged;};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EVENTSDLG_H__9E405D40_7759_11D4_A1FB_00508B9DC668__INCLUDED_)
|