GroupDlg.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. #if !defined(AFX_GROUPDLG_H__92368487_9E05_454E_A66F_23A9A94A753B__INCLUDED_)
  19. #define AFX_GROUPDLG_H__92368487_9E05_454E_A66F_23A9A94A753B__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // GroupDlg.h : header file
  24. //
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CGroupDlg dialog
  27. class CGroupDlg : public CDialog
  28. {
  29. CImageList m_imgList;
  30. // Construction
  31. public:
  32. virtual void OnOK();
  33. virtual void OnCancel();
  34. void InitGroups();
  35. CGroupDlg(CWnd* pParent = NULL); // standard constructor
  36. HTREEITEM m_hWorld;
  37. // Dialog Data
  38. //{{AFX_DATA(CGroupDlg)
  39. enum { IDD = IDD_DLG_GROUP };
  40. CTreeCtrl m_wndTree;
  41. CButton m_wndEdit;
  42. CButton m_wndDel;
  43. CButton m_wndAdd;
  44. //}}AFX_DATA
  45. // Overrides
  46. // ClassWizard generated virtual function overrides
  47. //{{AFX_VIRTUAL(CGroupDlg)
  48. public:
  49. virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. protected:
  56. // Generated message map functions
  57. //{{AFX_MSG(CGroupDlg)
  58. afx_msg void OnSize(UINT nType, int cx, int cy);
  59. virtual BOOL OnInitDialog();
  60. afx_msg void OnBtnAdd();
  61. afx_msg void OnBtnDel();
  62. afx_msg void OnBtnEdit();
  63. afx_msg void OnRclickTreeGroup(NMHDR* pNMHDR, LRESULT* pResult);
  64. afx_msg void OnEndlabeleditTreeGroup(NMHDR* pNMHDR, LRESULT* pResult);
  65. afx_msg void OnClickTreeGroup(NMHDR* pNMHDR, LRESULT* pResult);
  66. afx_msg void OnSetdispinfoTreeGroup(NMHDR* pNMHDR, LRESULT* pResult);
  67. afx_msg void OnBegindragTreeGroup(NMHDR* pNMHDR, LRESULT* pResult);
  68. //}}AFX_MSG
  69. DECLARE_MESSAGE_MAP()
  70. };
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. extern CGroupDlg *g_pGroupDlg;
  74. #endif // !defined(AFX_GROUPDLG_H__92368487_9E05_454E_A66F_23A9A94A753B__INCLUDED_)