📄 msgdetailview.h
字号:
// MsgDetailView.h : interface of the CMsgDetailView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MSGDETAILVIEW_H__6392F4F0_F2BC_4F19_A315_A9BD2394EBB0__INCLUDED_)
#define AFX_MSGDETAILVIEW_H__6392F4F0_F2BC_4F19_A315_A9BD2394EBB0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMsgDetailView : public CFormView
{
protected: // create from serialization only
CMsgDetailView();
DECLARE_DYNCREATE(CMsgDetailView)
int orderby;
bool haveMsgHead;
bool firstRun;
int npage;
int MsgCountPerPage;
public:
//{{AFX_DATA(CMsgDetailView)
enum { IDD = IDD_MSGDETAIL_FORM };
CListCtrl cdrListc;
CEdit binaryc;
CListCtrl listc;
CEdit msgdetailc;
CEdit msgc;
int nPageJump;
CString strPageInfo;
//}}AFX_DATA
// Attributes
public:
CMsgDetailDoc* GetDocument();
// Operations
public:
bool ChangeStringToBinary(unsigned char *buf,int buflen,CString str,int& msglen);
bool SplitMsgStr(CString &msgstr,CString &str);
void UpdateDetailMsg(int index);
void BuildColumns(int nCols, int * nWidth, CString * strCol);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMsgDetailView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
void UpdateCDRMsg(UINT filepos1,UINT filepos2,CString filePath);
void UpdateCDRList();
virtual ~CMsgDetailView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMsgDetailView)
afx_msg void OnOK();
afx_msg void OnDblclkMsgList(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRadio1();
afx_msg void OnRadio2();
afx_msg void OnDelete();
afx_msg void OnRemoveall();
afx_msg void OnSms();
afx_msg void OnButtonPageup();
afx_msg void OnButtonPagedown();
afx_msg void OnButtonPageStart();
afx_msg void OnButtonPageEnd();
afx_msg void OnButtonJump();
afx_msg void OnDblclkListCdr(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void UpdateList();
};
#ifndef _DEBUG // debug version in MsgDetailView.cpp
inline CMsgDetailDoc* CMsgDetailView::GetDocument()
{ return (CMsgDetailDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MSGDETAILVIEW_H__6392F4F0_F2BC_4F19_A315_A9BD2394EBB0__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -