BOOL CSurfaceDlg::OnInitDialog( void ) {
	CDialog::OnInitDialog();

	g_surfwin = GetSafeHwnd();
	SetTexMods();

	//m_wndHScale.SetRange( 0, 100 );
	//m_wndVScale.SetRange( 0, 100 );
	m_wndHShift.SetRange( 0, 100 );
	m_wndVShift.SetRange( 0, 100 );
	m_wndRotate.SetRange( 0, 100 );
	m_wndWidth.SetRange( 1, 32 );
	m_wndHeight.SetRange( 1, 32 );

	m_wndVerticalSubdivisions.SetRange( 1, 32 );
	m_wndVerticalSubdivisions.SetBuddy( &m_wndVert, FALSE );
	m_wndHorzSubdivisions.SetRange( 1, 32 );
	m_wndHorzSubdivisions.SetBuddy( &m_wndHorz, FALSE );
	m_wndVerticalSubdivisions.SetPos( m_nVert );
	m_wndHorzSubdivisions.SetPos( m_nHorz );

// ---> sikk - Merged Patch Inspector into Surface Inspector
	m_wndPatchHScale.SetRange( 0, 1000 );
	m_wndPatchVScale.SetRange( 0, 1000 );
	m_wndPatchHShift.SetRange( 0, 1000 );
	m_wndPatchVShift.SetRange( 0, 1000 );
	m_wndPatchRotate.SetRange( 0, 1000 );

	GetPatchInfo();
// <--- sikk - Merged Patch Inspector into Surface Inspector

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
Beispiel #2
0
BOOL CPatchDialog::OnInitDialog()
{
	CDialog::OnInitDialog();
	
	m_wndHScale.SetRange( 0, 1000 );
	m_wndVScale.SetRange( 0, 1000 );
	m_wndHShift.SetRange( 0, 1000 );
	m_wndVShift.SetRange( 0, 1000 );
	m_wndRotate.SetRange( 0, 1000 );
	
	GetPatchInfo();
	
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
Beispiel #3
0
void CPatchDialog::UpdateInfo()
{
	GetPatchInfo();
}
void CSurfaceDlg::UpdateInfo( void ) {
	GetPatchInfo();
}