SunDlg.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #ifndef SUNDLG_H
  2. #define SUNDLG_H
  3. /*************************************************************************************************\
  4. SunDlg.h : Interface for the SunDlg component.
  5. //---------------------------------------------------------------------------//
  6. // Copyright (C) Microsoft Corporation. All rights reserved. //
  7. //===========================================================================//
  8. \*************************************************************************************************/
  9. #include "stdafx.h"
  10. #include "resource.h"
  11. //*************************************************************************************************
  12. /**************************************************************************************************
  13. CLASS DESCRIPTION
  14. SunDlg:
  15. **************************************************************************************************/
  16. class SunDlg: public CDialog
  17. {
  18. public:
  19. SunDlg();
  20. virtual void Init();
  21. void DoDataExchange(CDataExchange* pDX);
  22. //virtual void OnCommand(Window *wnd,int nCommand);
  23. //virtual void OnOwnerDraw( ODSTRUCT* odStruct );
  24. public:
  25. float yaw;
  26. float pitch;
  27. long sunRGB;
  28. long ambientRGB;
  29. CBrush brush;
  30. //{{AFX_DATA(SunDlg)
  31. enum { IDD = IDD_LIGHT };
  32. CEdit m_LightColor;
  33. CEdit m_AmbientEdit;
  34. float m_Yaw;
  35. float m_InitialSunPitch;
  36. //}}AFX_DATA
  37. //{{AFX_VIRTUAL(SunDlg)
  38. //}}AFX_VIRTUAL
  39. protected:
  40. //{{AFX_MSG(SunDlg)
  41. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  42. afx_msg void OnAmbientButton();
  43. afx_msg void OnLightButton();
  44. virtual void OnOK();
  45. afx_msg void OnRecalculateTerrainShadowsButton();
  46. afx_msg void OnRefractalizeTerrainButton();
  47. //}}AFX_MSG
  48. DECLARE_MESSAGE_MAP()
  49. afx_msg void OnChangeLightcolor(UINT id);
  50. virtual BOOL OnInitDialog();
  51. void displayInHex( long number, CEdit& edit );
  52. long getHexValue( CEdit& edit );
  53. void DoColorDlg( CEdit& edit);
  54. void applyChanges();
  55. CBrush backgroundBrush;
  56. };
  57. //*************************************************************************************************
  58. #endif // end of file ( SunDlg.h )