/*
///////////////////////////////////////////////////////////////////////////////////////////////////
// Description : LkBezDia.cpp
//   
///////////////////////////////////////////////////////////////////////////////////////////////////
// inherit from  :	Link
///////////////////////////////////////////////////////////////////////////////////////////////////
// Creation date: 30 jan 1997                        Author: J Thénoz
///////////////////////////////////////////////////////////////////////////////////////////////////
// Modification date:			                      Author: 
// 
//
// 
//
///////////////////////////////////////////////////////////////////////////////////////////////////
*/

//ANNECY Shaitan Nettoyage (12/05/98) {
/*
#include "stdafx.h"
#include "acp_base.h"
#include "resource.h"
#include "incitf.h"
#include "incgam.h"
#include "incai.h"
#include "LkBezDia.h"
#include "WpObj.hpp"
#include "WayObj.hpp"
#include "LinkObj.hpp"
#include "TanObj.hpp"
#include "CurObj.hpp"
#include "Link2D.hpp"
#include "LinkBez.hpp"


//ROMTEAM WorldEditor (Viorel Preoteasa 20/01/98) 
//ENDROMTEAM WorldEditor (Viorel Preoteasa) 

#include "Inter.hpp"
#include "x:/cpa/main/inc/_EditId.h"
#include "tut.h"


/////////////////////////////////////////////////////////////////////////////
// BezierDia dialog

BezierDia::BezierDia (LinkBez* pLinkBez, CWnd* pParent)  
	: CDialog(BezierDia::IDD, pParent)
{
	//{{AFX_DATA_INIT(BezierDia)
	m_iSamplingRate = 0;
	//}}AFX_DATA_INIT
	m_pLinkBez = pLinkBez;
}


void BezierDia::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(BezierDia)
	DDX_Text(pDX, IDC_BEZIER_EDIT, m_iSamplingRate);
	DDV_MinMaxInt(pDX, m_iSamplingRate, 0, 500000);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(BezierDia, CDialog)
	//{{AFX_MSG_MAP(BezierDia)
	ON_EN_KILLFOCUS(IDC_BEZIER_EDIT, OnKillfocusBezierEdit)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// BezierDia message handlers

void BezierDia::OnKillfocusBezierEdit() 
{
	UpdateData (TRUE);

	// change in the dynamic param
	WP_fnv_Link_SetCurrentSample ( (WP_tdhLink)(m_pLinkBez->GetEngineStruct()),m_iSamplingRate );
	
//ROMTEAM WorldEditor (Viorel Preoteasa 20/01/98) 
	// change in the bezier structure
//	EDWAY_fnb_BezierObject_ChangeSamplingRate(m_pLinkBez->fn_hGetEditBezierObject(),m_iSamplingRate);
	(m_pLinkBez->fn_hGetEditBezierObject())->ChangeSamplingRate(m_iSamplingRate);
//ENDROMTEAM WorldEditor (Viorel Preoteasa) 

	
	m_pLinkBez->GetInterface()->GetInterface()->fn_vUpdateAll (E_mc_JustDraw);
}

BOOL BezierDia::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_iSamplingRate = WP_fnuc_Link_GetCurrentSample ((WP_tdhLink)(m_pLinkBez->GetEngineStruct()));
	
	UpdateData (FALSE);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

BOOL BezierDia::OnCommand(WPARAM wParam, LPARAM lParam) 
{
	// TODO: Add your specialized code here and/or call the base class
	if (wParam==1) 
	{
		OnKillfocusBezierEdit();
		return TRUE;
	}
	return CDialog::OnCommand(wParam, lParam);
}

void BezierDia::fn_vTutRegister (void)
{
	TUT_M_vGetTutDll ();
	TUT_M_vRegisterControl (m_hWnd , "OWP_ArcDialog" , TUT_e_Window);
	TUT_M_vRegisterControlID (IDC_BEZIER_EDIT,"OWP_BezierSamplingRateEdit",TUT_e_TextEdit);
}

void BezierDia::fn_vTutUnregister (void)
{
	TUT_M_vGetTutDll ();
	TUT_M_vUnregisterControl (m_hWnd);
	TUT_M_vUnregisterControlID (IDC_BEZIER_EDIT);
}

*/
//ENDANNECY Shaitan Nettoyage }
