📄 lcyszdlg.h
字号:
// lcySZDlg.h : header file
//
#if !defined(AFX_LCYSZDLG_H__94944AE6_05CD_11D7_B9EE_8D7569B68A48__INCLUDED_)
#define AFX_LCYSZDLG_H__94944AE6_05CD_11D7_B9EE_8D7569B68A48__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CLcySZDlg dialog
/*添加的内容*/
typedef struct {
float re, im;
} complex;
class CLcySZDlg : public CDialog
{
// Construction
public:
static int lcy_Callback(
void *inputBuffer,
unsigned long framesPerBuffer);
CLcySZDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CLcySZDlg)
enum { IDD = IDD_LCYSZ_DIALOG };
CSliderCtrl m_slider1;
UINT m_edit1v;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLcySZDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CLcySZDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnClose();
afx_msg void OnCustomdrawSlider1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnChangeEdit1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
float m_fudu,m_glys;
UINT m_with,m_max_edit1v;
int m_slider1pos;
CWnd *wnd2;
CPoint centerH1,win1bottom,win1top;
CPen penred,penblack,*oldpen;
CRgn rgn1;
CFont font1,font2,*oldfont;
CRect m_display1_rect,m_display2_rect;
long samplaRate;
static UINT m_SAMPLE_NUM;
static short * x_lcy;
void spfftc(complex *x, long *n, long *isign);
void complex_exp(complex *r, complex *z);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LCYSZDLG_H__94944AE6_05CD_11D7_B9EE_8D7569B68A48__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -