MFC-Simulator/TestSimulator/OscDlg.h

73 lines
1.7 KiB
C
Raw Normal View History

2023-02-03 03:07:52 +01:00
// OscDlg.h : <20><><EFBFBD>Y<EFBFBD><59>
//
#pragma once
#include "afxwin.h"
#include <deque>
class CTestSimulatorDlg;
// COscDlg <20><><EFBFBD>ܤ<EFBFBD><DCA4><EFBFBD>
class COscDlg : public CDialogEx
{
public:
COscDlg (CWnd* pParent = NULL); // <20>зǫغc<D8BA>
virtual ~COscDlg ();
// <20><><EFBFBD>ܤ<EFBFBD><DCA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
enum { IDD = IDD_DIALOG_OSC };
private:
CTestSimulatorDlg* m_pSimulatorDlg; //<2F>D<EFBFBD><44><EFBFBD>ܲ<EFBFBD><DCB2><EFBFBD><EFBFBD><EFBFBD>
CComboBox m_ctrlComboOutput; //Output combo box<6F>ܼ<EFBFBD>
CComboBox m_ctrlComboYInterval; //Y<>b<EFBFBD><62><EFBFBD>j combo box<6F>ܼ<EFBFBD>
CComboBox m_ctrlComboXInterval; //X<>b<EFBFBD><62><EFBFBD>j combo box<6F>ܼ<EFBFBD>
std::deque <CPen*> m_deqPenPtr; //<2F>H<EFBFBD><48><EFBFBD>e<EFBFBD><65>deque
double m_dTime; //<2F><><EFBFBD><EFBFBD><EFBFBD>ɶ<EFBFBD>
double m_dSlctOutputValue; //<2F><><EFBFBD><EFBFBD>output value
double m_dMaxDataValue; //<2F>ܪi<DCAA><69><EFBFBD><EFBFBD><EFBFBD>̤ܳj<CCA4><6A>
double m_dFreq; //<2F>W<EFBFBD>v
int m_iOutputSize; //channel<65>ƥ<EFBFBD>
double m_dYInterval; //Y<>b<EFBFBD><62><EFBFBD>j
int m_iXInterval; //X<>b<EFBFBD><62><EFBFBD>j
int m_iYPos; //Y<>b<EFBFBD><62><EFBFBD>j combo box<6F><78><EFBFBD>m
int m_iXPos; //X<>b<EFBFBD><62><EFBFBD>j combo box<6F><78><EFBFBD>m
protected:
HICON m_hIcon;
virtual void DoDataExchange (CDataExchange* pDX); // DDX/DDV <20>
DECLARE_MESSAGE_MAP ()
public:
CRect m_rcWork; //<2F>ܪi<DCAA><69><EFBFBD><EFBFBD><EFBFBD>ܲ<EFBFBD><DCB2>u<EFBFBD>@<40><>
int m_iSlctOutputNum; //<2F><><EFBFBD><EFBFBD>output<75>s<EFBFBD><73>
BOOL m_bSim; //<2F>P<EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD>
BOOL m_bModify; //<2F>P<EFBFBD>_combo box<6F><78><EFBFBD><EFBFBD>
BOOL m_bFFT; //<2F>P<EFBFBD>_<EFBFBD>i<EFBFBD><69>FFT
virtual BOOL OnInitDialog ();
afx_msg void OnPaint ();
afx_msg void OnBnClickedButtonStart ();
afx_msg void OnBnClickedButtonStop ();
afx_msg void OnCbnSelchangeComboOutput ();
afx_msg void OnCbnSelchangeComboValueInterval ();
afx_msg void OnCbnSelchangeComboTimeInterval ();
virtual BOOL PreTranslateMessage (MSG* pMsg);
afx_msg void OnClose ();
void SetData (double, double, double);
void SetData (double, double);
void SetOutputSize (int);
void InitialData ();
int GetTimeInterval () const;
};