SingleValueDlg.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef SINGLEVALDLG_H
  2. #define SINGLEVALDLG_H
  3. /*************************************************************************************************\
  4. HeightDlg.h : Interface for the HeightDlg component.
  5. //-------------------------------------------------------------------------------------------------
  6. Notes : lets the user enter a minimum and maximum height for the map
  7. //---------------------------------------------------------------------------//
  8. // Copyright (C) Microsoft Corporation. All rights reserved. //
  9. //===========================================================================//
  10. \*************************************************************************************************/
  11. #include "stdafx.h"
  12. //*************************************************************************************************
  13. /**************************************************************************************************
  14. CLASS DESCRIPTION
  15. HeightDlg:
  16. **************************************************************************************************/
  17. class SingleValueDlg: public CDialog
  18. {
  19. public:
  20. SingleValueDlg( int captionID, int staticTextID, int val = 0);
  21. virtual ~SingleValueDlg();
  22. virtual void Init();
  23. virtual void OnOK();
  24. // virtual void OnCommand(Window *wnd,int nCommand);
  25. int GetVal(){ return val; }
  26. void SetVal( int newVal ){ val = newVal; }
  27. void Update();
  28. virtual BOOL OnInitDialog( ){ Init(); return TRUE; }
  29. private:
  30. char staticText[256];
  31. char caption[256];
  32. int val;
  33. };
  34. //*************************************************************************************************
  35. #endif // end of file ( HeightDlg.h )