SearchResultDlg.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_SEARCHRESULTDLG_H__2CA90786_3EA8_403F_B65D_120BDFC42440__INCLUDED_)
  12. #define AFX_SEARCHRESULTDLG_H__2CA90786_3EA8_403F_B65D_120BDFC42440__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // SearchResultDlg.h : header file
  17. //
  18. #include "icqtypes.h"
  19. struct SEARCH_RESULT;
  20. #define MAX_PAGES 100
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CSearchResultDlg dialog
  23. class CSearchResultDlg : public CPropertyPage
  24. {
  25. DECLARE_DYNCREATE(CSearchResultDlg)
  26. // Construction
  27. public:
  28. CSearchResultDlg();
  29. ~CSearchResultDlg();
  30. SEARCH_RESULT *getResult();
  31. void onSendError(uint32 seq);
  32. void onUserFound(PtrList *l);
  33. // Dialog Data
  34. //{{AFX_DATA(CSearchResultDlg)
  35. enum { IDD = IDD_SEARCH_RESULT };
  36. CListCtrl m_ctlResult;
  37. //}}AFX_DATA
  38. // Overrides
  39. // ClassWizard generate virtual function overrides
  40. //{{AFX_VIRTUAL(CSearchResultDlg)
  41. public:
  42. virtual BOOL OnSetActive();
  43. virtual LRESULT OnWizardBack();
  44. virtual LRESULT OnWizardNext();
  45. protected:
  46. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  47. //}}AFX_VIRTUAL
  48. private:
  49. void enableControls(BOOL enable = TRUE);
  50. void displayPage(int page, BOOL showStatus = TRUE);
  51. void deleteResults();
  52. uint32 startUIN;
  53. int curPage;
  54. int pageCount;
  55. PtrList *pages[MAX_PAGES];
  56. // Implementation
  57. protected:
  58. // Generated message map functions
  59. //{{AFX_MSG(CSearchResultDlg)
  60. virtual BOOL OnInitDialog();
  61. afx_msg void OnSearchAll();
  62. afx_msg void OnSearchNext();
  63. afx_msg void OnSearchDetail();
  64. afx_msg void OnSearchPrev();
  65. afx_msg void OnColumnClick(NMHDR* pNMHDR, LRESULT* pResult);
  66. afx_msg void OnDblclkSearchResult(NMHDR* pNMHDR, LRESULT* pResult);
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  72. #endif // !defined(AFX_SEARCHRESULTDLG_H__2CA90786_3EA8_403F_B65D_120BDFC42440__INCLUDED_)