⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phonerecview.h

📁 VC++开发的一个电话录音程序
💻 H
字号:
#if !defined(AFX_PHONERECVIEW_H__77EA4B03_14BA_4B6A_B6B7_253F8A4AB344__INCLUDED_)
#define AFX_PHONERECVIEW_H__77EA4B03_14BA_4B6A_B6B7_253F8A4AB344__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "define.h"
#include "Ctidef.h"
#include "channel.h"
#include "PhoneRecDoc.h"
#include "MonitorChannel.h"
#include "PhoneChannel.h"
#include "phonic.h"
#include "Label.h"
#include <afxdb.h>

class CPhoneRecView : public CFormView
{
protected:
	CPhoneRecView();
	DECLARE_DYNCREATE(CPhoneRecView)

public:
	//{{AFX_DATA(CPhoneRecView)
	enum { IDD = IDD_PHONEREC_FORM };
	CButtonST	m_btn0;
	CPhonic	m_device;
	CButtonST	m_btn1;
	CButtonST	m_btn10;
	CButtonST	m_btn11;
	CButtonST	m_btn12;
	CButtonST	m_btn13;
	CButtonST	m_btn14;
	CButtonST	m_btn15;
	CButtonST	m_btn16;
	CButtonST	m_btn17;
	CButtonST	m_btn18;
	CButtonST	m_btn19;
	CButtonST	m_btn2;
	CButtonST	m_btn20;
	CButtonST	m_btn21;
	CButtonST	m_btn22;
	CButtonST	m_btn23;
	CButtonST	m_btn24;
	CButtonST	m_btn25;
	CButtonST	m_btn26;
	CButtonST	m_btn27;
	CButtonST	m_btn28;
	CButtonST	m_btn29;
	CButtonST	m_btn3;
	CButtonST	m_btn30;
	CButtonST	m_btn31;
	CButtonST	m_btn4;
	CButtonST	m_btn5;
	CButtonST	m_btn6;
	CButtonST	m_btn7;
	CButtonST	m_btn8;
	CButtonST	m_btn9;
	CLabel	m_flashCaller0;
	CLabel	m_flashCaller1;
	CLabel	m_flashCaller10;
	CLabel	m_flashCaller11;
	CLabel	m_flashCaller12;
	CLabel	m_flashCaller13;
	CLabel	m_flashCaller14;
	CLabel	m_flashCaller15;
	CLabel	m_flashCaller16;
	CLabel	m_flashCaller17;
	CLabel	m_flashCaller18;
	CLabel	m_flashCaller19;
	CLabel	m_flashCaller2;
	CLabel	m_flashCaller20;
	CLabel	m_flashCaller21;
	CLabel	m_flashCaller22;
	CLabel	m_flashCaller23;
	CLabel	m_flashCaller24;
	CLabel	m_flashCaller25;
	CLabel	m_flashCaller26;
	CLabel	m_flashCaller27;
	CLabel	m_flashCaller28;
	CLabel	m_flashCaller29;
	CLabel	m_flashCaller3;
	CLabel	m_flashCaller30;
	CLabel	m_flashCaller31;
	CLabel	m_flashCaller4;
	CLabel	m_flashCaller5;
	CLabel	m_flashCaller6;
	CLabel	m_flashCaller7;
	CLabel	m_flashCaller8;
	CLabel	m_flashCaller9;
	CLabel	m_flashProjectName;
	//}}AFX_DATA
public:
	CPhoneRecDoc* GetDocument();
public:
	//{{AFX_VIRTUAL(CPhoneRecView)
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL
public:
	int        m_nPushedBtnIdx;
	CImageList m_LargeImageList;
	virtual ~CPhoneRecView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
protected:
	//{{AFX_MSG(CPhoneRecView)
	afx_msg void OnPaint();
	afx_msg void OnDestroy();
	afx_msg void OnStatePhonicctrl(long channelType, long channelID, long newChannelState, long oldChannelState);
	afx_msg void OnCallInPhonicctrl(long channelType, long channelID, LPCTSTR callerID, LPCTSTR phoneNumber);
	afx_msg void OnDeviceTimerPhonicctrl(long channelType, long channelID);
	afx_msg void OnIdlePhonicctrl(long channelType, long channelID);
	afx_msg void OnAnswerPhonicctrl(long channelType, long channelID);
	afx_msg void OnCallOutFinishPhonicctrl(long channelType, long channelID);
	afx_msg void OnCallFailPhonicctrl(long channelType, long channelID, long cause);
	afx_msg void OnHangupPhonicctrl(long channelType, long channelID, long cause);
	afx_msg void OnDTMFPhonicctrl(long channelType, long channelID, long dtmfCode);
	afx_msg void OnRecordEndPhonicctrl(long channelType, long channelID, long completeSize);
	afx_msg void OnPlayEndPhonicctrl(long channelType, long channelID, long completeSize);
	afx_msg void OnFlashPhonicctrl(long channelType, long channelID);
	afx_msg void OnRingPhonicctrl(long channelType, long channelID);
	afx_msg void OnHangingPhonicctrl(long channelType, long channelID);
	afx_msg void OnCheck1();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:

	CButtonST*		m_pButtonArray[ 32 ];
	CLabel*         m_pFlashArray[ 32 ];
	CObjectArray	m_LineArray;
	CObjectArray	m_ChannelArray[CH_MAX+1];	//空通道类型为CH_MAX

public :
	int GetCurrentHitButtonSerial(HANDLE hHandle);

	CChannel *	GetChannelObject( int channelType, int channelID );
	CChannel *	GetChannelObject( int lineID );
};

	
#ifndef _DEBUG  // debug version in PhoneRecView.cpp
inline CPhoneRecDoc* CPhoneRecView::GetDocument()
   { return (CPhoneRecDoc*)m_pDocument; }
#endif


inline
CChannel * CPhoneRecView::GetChannelObject( int channelType, int channelID )
{
	CChannel * pChannel = NULL;
	if( (channelType>=CH_MIN) && (channelType<=CH_MAX) )
	{
		pChannel = (CChannel *)m_ChannelArray[channelType].GetAt(channelID);
	}
	return pChannel;
}

inline CChannel* CPhoneRecView::GetChannelObject( int lineID )
{
	if( lineID >= m_LineArray.GetSize() || lineID < 0 )
		return NULL;
	else
		return (CChannel *)m_LineArray.GetAt(lineID);
}

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PHONERECVIEW_H__77EA4B03_14BA_4B6A_B6B7_253F8A4AB344__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -