📄 listtextdlg.h
字号:
// ListTextDlg.h : header file
//
#if !defined(AFX_LISTTEXTDLG_H__A04D37E0_8BDE_4CBE_9343_CD4D78E1516A__INCLUDED_)
#define AFX_LISTTEXTDLG_H__A04D37E0_8BDE_4CBE_9343_CD4D78E1516A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CListTextDlg dialog
class CListTextDlg : public CDialog
{
// Construction
public:
void SmsContent();
CListTextDlg(CWnd* pParent = NULL); // standard constructor
CString m_MySms;
/* typedef struct Sms { //定义结构
CString PhoneNumber; //品名
CString Status; //状态
CString Data; //日期
//char szDj[10]; //
//char szJe[10]; //金额
} My_Sms;
*/
typedef struct tagSPS { //定义结构
char szPm[10]; //品名
char Lx[2]; //0-GJ 1-XS
char szSl[5]; //数量
char szDj[5]; //单价
char szJe[5]; //金额
char en[4];
}SPS ;
/*
typedef struct tagSPS { //定义结构
CString szPm; //品名
CString Lx; //0-GJ 1-XS
CString szSl; //数量
CString szDj; //单价
CString szJe; //金额
}SPS;*/
void MyTrim(char *pbuffer, int len)
{ char *PByte = pbuffer;
for (int i = 0; i<len; i++)
{ if ((*PByte)==' ')
{(*PByte)=0;
break;
};
PByte++;
};
}
int CALLBACK CompareFunc(LPARAM lParam1,LPARAM lParam2,LPARAM lParamSort);
/*
//SPS GetData(CFile myfile_1,int nRecord)
//{
int offset;
SPS buf;
//计算第nRecord条记录在文件中的位置
offset=(nRecord-1)*sizeof(SPS);
//文件指针移到文件头
myfile_1.SeekToBegin();
//从当前位置移动offset个字节
myfile_1.Seek(offset, CFile::current);
//读取记录信息
myfile_1.Read(buf,sizeof(SPS));
return buf;
//}*/
// Dialog Data
//{{AFX_DATA(CListTextDlg)
enum { IDD = IDD_LISTTEXT_DIALOG };
CListCtrl m_ListCtrl;
CString m_Edit1;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CListTextDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CListTextDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnInsertitemList1(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDel();
afx_msg void OnButton1();
afx_msg void OnChangeEdit1();
afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LISTTEXTDLG_H__A04D37E0_8BDE_4CBE_9343_CD4D78E1516A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -