//{{AFX_INCLUDES() #include "msflexgrid.h" //}}AFX_INCLUDES #if !defined(AFX_FIRDIALOG_H__9FFE8580_413C_4420_9B63_D041CDDF394D__INCLUDED_) #define AFX_FIRDIALOG_H__9FFE8580_413C_4420_9B63_D041CDDF394D__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // FIRDialog.h : header file // #include "FIR.h" const int precision=8;// set the global precision of double number for this class (+ include classes). ///////////////////////////////////////////////////////////////////////////// // CFIRDialog dialog class CFIRDialog : public CDialog // this dialog-based class is used to getting the coeficients of FIR filter that are entered by user. { // Construction public: CFIR* fir;// "fir" is a variable that points to a CFIR class to use as a FIR filter object. CString double2str(double num);// change a number in string (character array) state to its equivalent double number. //double* hn; int ColumnIndex;// the index of column that H[i][j] is related to this class. int RowIndex;// the index of row that H[i][j] is related to this class. CFIRDialog(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CFIRDialog) enum { IDD = IDD_DFIRDialog }; int FilterDegree;// is a Editbox variable that gets the degree of FIR filter from user. CMSFlexGrid param; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CFIRDialog) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CFIRDialog) virtual BOOL OnInitDialog();// called when the dialog of this class is opened . afx_msg void OnChangeEFilterDegree();// called when user changes the filterdegree Editbox . afx_msg void OnClickMsflexgridfir();// called when user click the FlexGrid object of the dialog of this object. DECLARE_EVENTSINK_MAP() //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_FIRDIALOG_H__9FFE8580_413C_4420_9B63_D041CDDF394D__INCLUDED_)