ViewMsgDlg.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_VIEWMSGDLG_H__8C551F48_FF42_4D67_A062_3525E697D698__INCLUDED_)
  12. #define AFX_VIEWMSGDLG_H__8C551F48_FF42_4D67_A062_3525E697D698__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // ViewMsgDlg.h : header file
  17. //
  18. #include "icqwindow.h"
  19. #include "MyDlg.h"
  20. #include "BtnST.h"
  21. #include "HistoryListBox.h"
  22. class CSendMsgDlg;
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CViewMsgDlg dialog
  25. class CViewMsgDlg : public CMyDlg, public IcqWindow
  26. {
  27. // Construction
  28. public:
  29. CViewMsgDlg(IcqContact *contact, CWnd* pParent = NULL);   // standard constructor
  30. void onRecvMessage();
  31. // Dialog Data
  32. //{{AFX_DATA(CViewMsgDlg)
  33. enum { IDD = IDD_VIEW_MESSAGE };
  34. CHistoryListBox m_lstHistory;
  35. CButtonST m_btnPic;
  36. //}}AFX_DATA
  37. private:
  38. CSendMsgDlg *createSendMsgDlg();
  39. void expand();
  40. void shrink();
  41. IcqContact *contact;
  42. CSize wholeSize;
  43. BOOL expanded;
  44. // Overrides
  45. // ClassWizard generated virtual function overrides
  46. //{{AFX_VIRTUAL(CViewMsgDlg)
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  49. virtual void PostNcDestroy();
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. protected:
  53. // Generated message map functions
  54. //{{AFX_MSG(CViewMsgDlg)
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnNextMsg();
  57. virtual void OnCancel();
  58. virtual void OnOK();
  59. afx_msg void OnMenuQuickReply();
  60. afx_msg void OnQuickReply();
  61. afx_msg void OnPic();
  62. afx_msg void OnHistory();
  63. //}}AFX_MSG
  64. DECLARE_MESSAGE_MAP()
  65. };
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  68. #endif // !defined(AFX_VIEWMSGDLG_H__8C551F48_FF42_4D67_A062_3525E697D698__INCLUDED_)