testdlg.h

来自「这是一个手机与外界通信的程序」· C头文件 代码 · 共 65 行

H
65
字号
// testDlg.h : header file
//

#if !defined(AFX_TESTDLG_H__D1579F9B_BCF8_4024_80C1_BB5582C6B564__INCLUDED_)
#define AFX_TESTDLG_H__D1579F9B_BCF8_4024_80C1_BB5582C6B564__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CTestDlg dialog
#include "2DGraph.h"
class CTestDlg : public CDialog
{
// Construction
public:
	CTestDlg(CWnd* pParent = NULL);	// standard constructor
	void OpenCom();
	void chuli(double x[],double y[]);
	void rfft(double x[],double y[],int n);


// Dialog Data
	//{{AFX_DATA(CTestDlg)
	enum { IDD = IDD_TEST_DIALOG };
	int		m_js;
	CString	m_strx;
	CString	m_stry;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
    int fs,fcx,fcy,flag1,flag2;
	double freq[256],ffx[256],ffy[256];
	HANDLE hCom;
	HANDLE aFile,bFile;
    HANDLE m_hReadThread,m_hReadCloseEvent;
	static DWORD ReadThreadFunc(PVOID pArg);
	void zuotu(double xy[]);
	C2DGraph m_2DGraph;

};

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

#endif // !defined(AFX_TESTDLG_H__D1579F9B_BCF8_4024_80C1_BB5582C6B564__INCLUDED_)

⌨️ 快捷键说明

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