ConversationPickerDialog.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #if !defined(AFX_CONVERSATIONPICKERDIALOG_H__45E7AEA7_6692_43BF_B169_555904929404__INCLUDED_)
  19. #define AFX_CONVERSATIONPICKERDIALOG_H__45E7AEA7_6692_43BF_B169_555904929404__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. #include "resource.h"
  24. /////////////////////////////////////////////////////////////////////////////
  25. // Forward declarations
  26. /////////////////////////////////////////////////////////////////////////////
  27. class ConversationClass;
  28. /////////////////////////////////////////////////////////////////////////////
  29. //
  30. // ConversationPickerDialogClass
  31. //
  32. /////////////////////////////////////////////////////////////////////////////
  33. class ConversationPickerDialogClass : public CDialog
  34. {
  35. // Construction
  36. public:
  37. ConversationPickerDialogClass(CWnd* pParent = NULL); // standard constructor
  38. // Dialog Data
  39. //{{AFX_DATA(ConversationPickerDialogClass)
  40. enum { IDD = IDD_CONVERSATION_PICKER };
  41. CTreeCtrl m_TreeCtrl;
  42. //}}AFX_DATA
  43. // Overrides
  44. // ClassWizard generated virtual function overrides
  45. //{{AFX_VIRTUAL(ConversationPickerDialogClass)
  46. protected:
  47. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. protected:
  51. // Generated message map functions
  52. //{{AFX_MSG(ConversationPickerDialogClass)
  53. afx_msg void OnSelchangedConversationTree(NMHDR* pNMHDR, LRESULT* pResult);
  54. virtual BOOL OnInitDialog();
  55. virtual void OnOK();
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. public:
  59. //////////////////////////////////////////////////////////////////////
  60. // Public methods
  61. //////////////////////////////////////////////////////////////////////
  62. void Set_Conversation (ConversationClass *conversation) { Conversation = conversation; }
  63. ConversationClass * Get_Conversation (void) { return Conversation; }
  64. private:
  65. //////////////////////////////////////////////////////////////////////
  66. // Private methods
  67. //////////////////////////////////////////////////////////////////////
  68. void Insert_Entry (ConversationClass *conversation);
  69. //////////////////////////////////////////////////////////////////////
  70. // Private member data
  71. //////////////////////////////////////////////////////////////////////
  72. ConversationClass * Conversation;
  73. HTREEITEM GlobalsRoot;
  74. HTREEITEM LevelsRoot;
  75. };
  76. //{{AFX_INSERT_LOCATION}}
  77. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  78. #endif // !defined(AFX_CONVERSATIONPICKERDIALOG_H__45E7AEA7_6692_43BF_B169_555904929404__INCLUDED_)