MyToolbar.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. ** Command & Conquer Generals Zero Hour(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. // MyToolBar.h
  19. // Class to do custom toolbar.
  20. // Author: John Ahlquist, April 2001
  21. #pragma once
  22. #ifndef MYTOOLBAR_H
  23. #define MYTOOLBAR_H
  24. /*************************************************************************
  25. ** CellSizeToolBar
  26. ***************************************************************************/
  27. class CellSizeToolBar : public CDialogBar
  28. {
  29. protected:
  30. static CellSizeToolBar* CellSizeToolBar::m_staticThis;
  31. CSliderCtrl m_cellSlider;
  32. protected:
  33. afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  34. virtual LRESULT WindowProc( UINT message, WPARAM wParam, LPARAM lParam );
  35. DECLARE_MESSAGE_MAP()
  36. public:
  37. ~CellSizeToolBar(void);
  38. void SetupSlider(void);
  39. static void CellSizeChanged(Int cellSize);
  40. };
  41. #endif //MYTOOLBAR_H