SearchSignDlg.h
上传用户:yffx2008
上传日期:2014-10-12
资源大小:12414k
文件大小:2k
源码类别:

交通/航空行业

开发平台:

Visual C++

  1. #if !defined(AFX_SEARCHSIGNDLG_H__806130C7_7CA9_11D8_B7C5_00E01808A228__INCLUDED_)
  2. #define AFX_SEARCHSIGNDLG_H__806130C7_7CA9_11D8_B7C5_00E01808A228__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // SearchSignDlg.h : header file
  7. //
  8. #include "SearchSignDlg.h"
  9. #include "GpsDrawMap.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CSearchSignDlg dialog
  12. class CSearchSignDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CSearchSignDlg(CWnd* pParent = NULL);   // standard constructor
  17. CSearchSignDlg(CObList *SignList,CObList *AreaList,CWnd* pParent = NULL);
  18. // Dialog Data
  19. //{{AFX_DATA(CSearchSignDlg)
  20. enum { IDD = IDD_SEARCH_SIGN };
  21. CTreeCtrl m_ctlAreaTree;
  22. CButton m_ctlOtherArea;
  23. CEdit m_ctlAdvertiseInfo;
  24. CStatic m_ctlCaption;
  25. CComboBox m_ctlSignType;
  26. CListBox m_ctlSignList;
  27. CButton m_btnSearch;
  28. CButton m_ctlCurrArea;
  29. CString m_sAdvertiseInfo;
  30. //}}AFX_DATA
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(CSearchSignDlg)
  34. protected:
  35. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  36. //}}AFX_VIRTUAL
  37. public:
  38. void ListTypeSignLib(CObList *SignList);
  39. void ListTypeAreaLib(CObList *AreaList);
  40. void AddSubAreaToTree(HTREEITEM hParent,CObList *AreaList,BYTE i,CString Level);
  41. void GetParent(CGpsDrawMap *pDrawMap);
  42. void ClearSignList(CObList *SignList);
  43. public:
  44. CObList *lSignList;
  45. CObList *lAreaList;
  46. CObList lOtherSignList;
  47. HTREEITEM m_hCurrTree;
  48. CGpsDrawMap *m_pDrawMap;
  49. // Implementation
  50. //protected:
  51. public:
  52. // Generated message map functions
  53. //{{AFX_MSG(CSearchSignDlg)
  54. afx_msg void OnSearch();
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnCurrArea();
  57. afx_msg void OnSelchangeSignType();
  58. afx_msg void OnOtherArea();
  59. afx_msg void OnDblclkAreaTree(NMHDR* pNMHDR, LRESULT* pResult);
  60. afx_msg void OnSelchangedAreaTree(NMHDR* pNMHDR, LRESULT* pResult);
  61. afx_msg void OnDestroy();
  62. afx_msg void OnDblclkSignList();
  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_SEARCHSIGNDLG_H__806130C7_7CA9_11D8_B7C5_00E01808A228__INCLUDED_)