/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2007.01.08 * ³» ¿ë : »ç¿îµå ¼Ó¼º ´ÙÀ̾ó·Î±× * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once #include "Resource.h" #include "UI/NumericEdit.h" class cSoundSceneNode; /// »ç¿îµå ¼Ó¼º ´ÙÀ̾ó·Î±× class cSoundPropertyDialog : public CDialog { DECLARE_DYNAMIC(cSoundPropertyDialog) public: cSoundPropertyDialog(); virtual ~cSoundPropertyDialog(); /// »ç¿îµå Á¤º¸¸¦ ¼³Á¤ void UpdateSound( const char* name, unsigned int loopCount, float interval, float volume ); /// Ȱ¼ºÈ­ ¿©ºÎ¸¦ ¼³Á¤ void SetEnabled( bool enabled ); protected: virtual void DoDataExchange( CDataExchange* dx ); BOOL OnInitDialog(); virtual void OnOK() {} virtual void OnCancel() {} protected: DECLARE_MESSAGE_MAP() afx_msg LRESULT OnChangedValue( WPARAM id, LPARAM ); private: /// ¹Ýº¹ Ƚ¼ö cNumericEdit mLoopCountEdit; /// Àç»ý °£°Ý cNumericEdit mIntervalEdit; /// À½·® cNumericEdit mVolumeRatioEdit; }; inline void cSoundPropertyDialog::SetEnabled( bool enabled ) { if( enabled ) { mLoopCountEdit.SetEnabled( true ); mIntervalEdit.SetEnabled( true ); mVolumeRatioEdit.SetEnabled( true ); } else { GetDlgItem(IDC_EDIT_SPROP_NAME)->SetWindowText( "" ); mLoopCountEdit.SetValue( 0.0f ); mLoopCountEdit.SetEnabled( false ); mIntervalEdit.SetValue( 0.0f ); mIntervalEdit.SetEnabled( false ); mVolumeRatioEdit.SetValue( 0.0f ); mVolumeRatioEdit.SetEnabled( false ); } }