home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 8090 / ModelEdit.7z / SetFOVDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-03-08  |  1.8 KB  |  69 lines

  1. #if !defined(AFX_SETFOVDLG_H__1BD6E2B0_B29F_4ED6_A6BC_19E83FB1A128__INCLUDED_)
  2. #define AFX_SETFOVDLG_H__1BD6E2B0_B29F_4ED6_A6BC_19E83FB1A128__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // SetFOVDlg.h : header file
  8. //
  9. class CRenderWnd ;
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CSetFOVDlg dialog
  12.  
  13. class CSetFOVDlg : public CDialog
  14. {
  15.     CRenderWnd *m_Host ;
  16.     int m_baseFOV;        // default = 45
  17.     int m_startVal, m_endVal ; // default = 0 - 90 
  18.  
  19. // Construction
  20. public:
  21.  
  22.     enum    {    MIN_FOV        = 1,
  23.                 MAX_FOV        = 90
  24.             };
  25.  
  26.     // pass the render window to this dialog
  27.     CSetFOVDlg(CRenderWnd *host, CWnd* pParent = NULL);   // standard constructor
  28.     
  29.     void SetBaseFOV( int val )  { m_baseFOV = val ; }
  30.     void SetFOVRange( int bot, int top ) { m_startVal = bot ; m_endVal = top ; }
  31.  
  32.  
  33. // Dialog Data
  34.     //{{AFX_DATA(CSetFOVDlg)
  35.     enum { IDD = IDD_SETFOV };
  36.         // NOTE: the ClassWizard will add data members here
  37.     //}}AFX_DATA
  38.  
  39.  
  40. // Overrides
  41.     // ClassWizard generated virtual function overrides
  42.     //{{AFX_VIRTUAL(CSetFOVDlg)
  43.     protected:
  44.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  45.     virtual void PostNcDestroy();
  46.     //}}AFX_VIRTUAL
  47.  
  48. // Implementation
  49. protected:
  50.  
  51.     // Generated message map functions
  52.     //{{AFX_MSG(CSetFOVDlg)
  53.     afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  54.     virtual BOOL OnInitDialog();
  55.     //}}AFX_MSG
  56.  
  57.     afx_msg void OnEditChange();
  58.  
  59.     CEdit*            GetEditFOV();
  60.     CSliderCtrl*    GetSliderFOV();    
  61.  
  62.     DECLARE_MESSAGE_MAP()
  63. };
  64.  
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  67.  
  68. #endif // !defined(AFX_SETFOVDLG_H__1BD6E2B0_B29F_4ED6_A6BC_19E83FB1A128__INCLUDED_)
  69.