📄 eringdlg.h
字号:
// eRingDlg.h : header file
//
#if !defined(AFX_ERINGDLG_H__C8C08D6A_A86E_42F9_8908_E34ED34E7BF8__INCLUDED_)
#define AFX_ERINGDLG_H__C8C08D6A_A86E_42F9_8908_E34ED34E7BF8__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "AfxTempl.h"
#include "MyListCtrl.h"
/////////////////////////////////////////////////////////////////////////////
// CERingDlg dialog
class CERingDlg : public CDialog
{
// Construction
public:
BOOL bWait;
void GetList();
typedef struct _FINDDATA{
DWORD dwFileAttributes;
CString szFileName;
CString szPathName;
FILETIME ftLastWriteTime;
DWORD nFileSize;
}FINDDATA,*PFINDDATA;
bool m_exit;
static int CALLBACK CompareFunc_Size(LPARAM lParam1, LPARAM lParam2,LPARAM lParamSort);
static int CALLBACK CompareFunc_Date(LPARAM lParam1, LPARAM lParam2,LPARAM lParamSort);
static int CALLBACK CompareFunc_Name(LPARAM lParam1, LPARAM lParam2,LPARAM lParamSort);
int FindFileInArray(CArray<PFINDDATA,PFINDDATA> &arr,CString fn);
void Preview();
void DeleteStrFromArray(CStringArray &arr,CString str);
void AddStrToArray(CStringArray &arr,CString str);
int FindStrInArray(CStringArray &arr,CString str);
CERingDlg(CWnd* pParent = NULL); // standard constructor
static DWORD WINAPI thdPlaySound(LPVOID para);
static DWORD WINAPI thdGetList(LPVOID para);
bool sortStatus[3];
CArray<PFINDDATA,PFINDDATA> listWave;
// Dialog Data
//{{AFX_DATA(CERingDlg)
enum { IDD = IDD_ERING_DIALOG };
CMyListCtrl m_List;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CERingDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CERingDlg)
virtual BOOL OnInitDialog();
afx_msg void OnItemchangedListwave(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnColumnclickListwave(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnPreview();
afx_msg void OnStop();
virtual void OnOK();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPaint();
afx_msg void OnSetRingTone(WPARAM wParam,LPARAM lParam);
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnCancelMode();
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void GetPopMenuPos(CPoint &pt);
void ReFresh();
void GetSelectedWave();
void SetRegistKey(CString fn);
int indexSort;
CPoint m_Point;
void ReleaseData();
CStringArray listRing;
void SetRingTone(CStringArray &arr);
bool beStop;
CStringArray listSelect;
bool bAbout;
void ArrangeItems();
int count;
void FillWaveList(int *pindex,PFINDDATA pData);
CImageList imgSmall;
void InitList();
void GetWaveList(CString path,BOOL bSub=TRUE);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ERINGDLG_H__C8C08D6A_A86E_42F9_8908_E34ED34E7BF8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -