📄 msgdemoview.h
字号:
// MsgDemoView.h : interface of the CMsgDemoView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MSGDEMOVIEW_H__A3126FA6_2208_4AC7_BF81_79D0C39163F9__INCLUDED_)
#define AFX_MSGDEMOVIEW_H__A3126FA6_2208_4AC7_BF81_79D0C39163F9__INCLUDED_
#include "AddMsgDlg.h"
#include "EditMsgDlg.h"
#include "SeekItemDlg.h"
#include "MsgListSendWnd.h"
#include "IniFile.h"
#include "ColMsgList.h"
#include "ConfigMsgDlg.h"
#include <comutil.h>
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define IDC_MSGLIST 10001
#include "SkinMagicLib.h"
class CMsgDemoView : public CView
{
protected: // create from serialization only
CMsgDemoView();
DECLARE_DYNCREATE(CMsgDemoView)
// Attributes
public:
CMsgDemoDoc* GetDocument();
CColMsgList m_List;
CString m_strId[600],m_strContent[600],m_strNum[600],m_strbSend[600],m_strDes[600];
_ConnectionPtr m_pConnection;
BOOL bResetLoad;
CMsgListSendWnd m_MsgSend;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMsgDemoView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMsgDemoView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
void ConnectToDatabase();
void ResetIniFileVal();
void DataProcessIniVal(CString strVal,int nLen);
void ReadIniFileVal();
afx_msg void OnContextMenu(CWnd*, CPoint point);
//{{AFX_MSG(CMsgDemoView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnRefresh();
afx_msg void OnAdd();
afx_msg void OnDelete();
afx_msg void OnEdit();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnDblclkMsgList(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSendMsg();
afx_msg void OnSeek();
afx_msg void OnRemoveAll();
afx_msg void OnConfigReal();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MsgDemoView.cpp
inline CMsgDemoDoc* CMsgDemoView::GetDocument()
{ return (CMsgDemoDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MSGDEMOVIEW_H__A3126FA6_2208_4AC7_BF81_79D0C39163F9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -