DialogToolbar.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. /***********************************************************************************************
  19. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : LevelEdit *
  23. * *
  24. * $Archive:: /Commando/Code/Tools/W3DView/DialogToolbar.h $*
  25. * *
  26. * Author:: Patrick Smith *
  27. * *
  28. * $Modtime:: 2/23/99 10:58a $*
  29. * *
  30. * $Revision:: 1 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #if defined(_MSC_VER)
  36. #pragma once
  37. #endif
  38. #ifndef __DIALOGTOOLBAR_H
  39. #define __DIALOGTOOLBAR_H
  40. #include "Resource.H"
  41. /////////////////////////////////////////////////////////////////
  42. //
  43. // DialogToolbarClass
  44. //
  45. class DialogToolbarClass : public CToolBar
  46. {
  47. public:
  48. DialogToolbarClass (void);
  49. virtual ~DialogToolbarClass (void) {}
  50. // Form Data
  51. public:
  52. //{{AFX_DATA(DialogToolbarClass)
  53. //}}AFX_DATA
  54. // Attributes
  55. public:
  56. // Operations
  57. public:
  58. // Overrides
  59. // ClassWizard generated virtual function overrides
  60. //{{AFX_VIRTUAL(DialogToolbarClass)
  61. protected:
  62. //}}AFX_VIRTUAL
  63. // Implementation
  64. protected:
  65. #ifdef _DEBUG
  66. virtual void AssertValid() const;
  67. virtual void Dump(CDumpContext& dc) const;
  68. #endif
  69. // Generated message map functions
  70. //{{AFX_MSG(DialogToolbarClass)
  71. afx_msg LRESULT OnIdleUpdateCmdUI(WPARAM wParam, LPARAM lParam);
  72. afx_msg void OnInitialUpdate();
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. //virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  76. BOOL OnNeedToolTipText (UINT id, NMHDR *pTTTStruct, LRESULT *pResult);
  77. public:
  78. ///////////////////////////////////////////////////////
  79. //
  80. // Public methods
  81. //
  82. void Enable_Button (int id, bool benable = true);
  83. };
  84. #endif //__DIALOGTOOLBAR_H