MsgView.h
上传用户:zslianheng
上传日期:2013-04-03
资源大小:946k
文件大小:3k
源码类别:

Linux/Unix编程

开发平台:

Visual C++

  1. /***************************************************************************
  2.  *                                                                         *
  3.  *   This program is free software; you can redistribute it and/or modify  *
  4.  *   it under the terms of the GNU General Public License as published by  *
  5.  *   the Free Software Foundation; either version 2 of the License, or     *
  6.  *   (at your option) any later version.                                   *
  7.  *                                                                         *
  8.  *   copyright            : (C) 2002 by Zhang Yong                         *
  9.  *   email                : z-yong163@163.com                              *
  10.  ***************************************************************************/
  11. #if !defined(AFX_MSGVIEW_H__D17D6457_6B67_450A_BDBF_3914741E85CC__INCLUDED_)
  12. #define AFX_MSGVIEW_H__D17D6457_6B67_450A_BDBF_3914741E85CC__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // MsgView.h : header file
  17. //
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CMsgView form view
  20. #ifndef __AFXEXT_H__
  21. #include <afxext.h>
  22. #endif
  23. class IcqMsg;
  24. class DBOutStream;
  25. class DBInStream;
  26. class CMsgView : public CFormView {
  27. protected:
  28. CMsgView();           // protected constructor used by dynamic creation
  29. DECLARE_DYNCREATE(CMsgView)
  30. // Form Data
  31. public:
  32. //{{AFX_DATA(CMsgView)
  33. enum { IDD = IDD_MSG_VIEW };
  34. CRichEditCtrl m_msgEdit;
  35. CStatic m_sendFace;
  36. CStatic m_recvFace;
  37. CString m_date;
  38. CString m_content;
  39. CString m_receiver;
  40. CString m_sender;
  41. CString m_time;
  42. //}}AFX_DATA
  43. // Attributes
  44. public:
  45. // Operations
  46. public:
  47. void save(DBOutStream &out);
  48. void load(DBInStream &in);
  49. void showMsg(IcqMsg *msg);
  50. // Overrides
  51. // ClassWizard generated virtual function overrides
  52. //{{AFX_VIRTUAL(CMsgView)
  53. public:
  54. virtual void OnInitialUpdate();
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. protected:
  60. virtual ~CMsgView();
  61. #ifdef _DEBUG
  62. virtual void AssertValid() const;
  63. virtual void Dump(CDumpContext& dc) const;
  64. #endif
  65. // Generated message map functions
  66. //{{AFX_MSG(CMsgView)
  67. afx_msg void OnSize(UINT nType, int cx, int cy);
  68. afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
  69. afx_msg void OnEditSelectAll();
  70. afx_msg void OnEditCopy();
  71. afx_msg void OnUpdateViewFont(CCmdUI* pCmdUI);
  72. //}}AFX_MSG
  73. afx_msg void OnRclickMsgEdit(NMHDR* pNMHDR, LRESULT* pResult);
  74. DECLARE_MESSAGE_MAP()
  75. };
  76. /////////////////////////////////////////////////////////////////////////////
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_MSGVIEW_H__D17D6457_6B67_450A_BDBF_3914741E85CC__INCLUDED_)