SearchWizard.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_SEARCHWIZARD_H__2BE6BCA0_F7FA_4E14_9D22_630FA15B627B__INCLUDED_)
  12. #define AFX_SEARCHWIZARD_H__2BE6BCA0_F7FA_4E14_9D22_630FA15B627B__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. // SearchWizard.h : header file
  17. //
  18. #include "icqwindow.h"
  19. #include "SearchModeDlg.h"
  20. #include "SearchCustomDlg.h"
  21. #include "SearchResultDlg.h"
  22. #include "SearchAddDlg.h"
  23. enum {
  24. SEARCH_MODE_ONLINE,
  25. SEARCH_MODE_CUSTOM
  26. };
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CSearchWizard
  29. class CSearchWizard : public CPropertySheet, public IcqWindow
  30. {
  31. DECLARE_DYNAMIC(CSearchWizard)
  32. // Construction
  33. public:
  34. CSearchWizard();
  35. void onAck(uint32 seq) {
  36. if (GetActivePage() == &addDlg)
  37. addDlg.onAck(seq);
  38. }
  39. void onUserFound(PtrList *l) {
  40. if (GetActivePage() == &resultDlg)
  41. resultDlg.onUserFound(l);
  42. }
  43. void onAddFriendReply(uint8 result) {
  44. if (GetActivePage() == &addDlg)
  45. addDlg.onAddFriendReply(result);
  46. }
  47. // Attributes
  48. public:
  49. CSearchModeDlg modeDlg;
  50. CSearchCustomDlg customDlg;
  51. CSearchResultDlg resultDlg;
  52. CSearchAddDlg addDlg;
  53. // Operations
  54. public:
  55. // Overrides
  56. public:
  57. BOOL Create(CWnd *pParentWnd = NULL);
  58. // ClassWizard generated virtual function overrides
  59. //{{AFX_VIRTUAL(CSearchWizard)
  60. protected:
  61. virtual void PostNcDestroy();
  62. //}}AFX_VIRTUAL
  63. // Implementation
  64. public:
  65. virtual ~CSearchWizard();
  66. // Generated message map functions
  67. protected:
  68. //{{AFX_MSG(CSearchWizard)
  69. //}}AFX_MSG
  70. DECLARE_MESSAGE_MAP()
  71. };
  72. /////////////////////////////////////////////////////////////////////////////
  73. //{{AFX_INSERT_LOCATION}}
  74. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  75. #endif // !defined(AFX_SEARCHWIZARD_H__2BE6BCA0_F7FA_4E14_9D22_630FA15B627B__INCLUDED_)