void CCreateOURANOSNormal::InitClass(const CStringArray& option)
{
	GetParamClassInfo().m_className.LoadString( IDS_SOURCENAME_CREATE_OURANOS_NORMAL );

	CToolsBase::InitClass(option);
	ASSERT( GetParameters().GetSize() < I_NB_ATTRIBUTE);

	CStringArrayEx str;
	str.LoadString( IDS_PROPERTIES_CREATE_OURANOS_NORMAL);
	ASSERT( str.GetSize() == NB_ATTRIBUTE);

//		CString filter1 = "*.loc|*.loc||";
	CString filter2 = GetString( IDS_CMN_FILTER_NORMALS);
	GetParameters().Add( CParamDef(CParamDef::PATH, ATTRIBUTE_NAME[0], str[0], "" ) );
	GetParameters().Add( CParamDef(CParamDef::FILEPATH, ATTRIBUTE_NAME[1], str[1], filter2 ) );

	CParamDef p(CParamDef::COMBO, ATTRIBUTE_NAME[2], str[2], "");
	p.m_subType = CParamDef::BY_NUMBER;
	for(int i=0; i<12; i++)
	{
		CString tmp;
		tmp.Format("%d-%d", 1961+10*i, 1990+10*i);
		p.m_listValue.Add(tmp);
	}
	GetParameters().Add(p);
}
예제 #2
0
BOOL CSongPropsDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();

	SetIcon(theApp.LoadIcon(IDR_MAINFRAME), 0);

	CPatchGeneralDlg::InitNoteCombo(m_KeySig);
	m_KeySig.SetCurSel(m_Props.m_Key);
	m_TimeSigNumer.SetVal(m_Props.m_Meter.m_Numerator);
	CStringArrayEx	sUnit;
	CPartBassDlg::GetPowerOfTwoStrings(sUnit, 
		CSong::CMeter::MIN_UNIT_EXP, CSong::CMeter::MAX_UNIT_EXP);
	int	nUnits = sUnit.GetSize();
	for (int iUnit = 0; iUnit < nUnits; iUnit++)
		m_TimeSigDenom.AddString(sUnit[iUnit]);
	DWORD	iSelUnit;
	_BitScanReverse(&iSelUnit, m_Props.m_Meter.m_Denominator);
	m_TimeSigDenom.SetCurSel(iSelUnit);
	m_Tempo.SetVal(m_Props.m_Tempo);
	m_Transpose.SetVal(m_Props.m_Transpose);
	m_Comments.SetWindowText(m_Props.m_Comments);

	EnableToolTips();

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
예제 #3
0
void CPartBassDlg::InitPowerOfTwoCombo(CComboBox& Combo, int LowerExp, int UpperExp)
{
	CStringArrayEx	str;
	GetPowerOfTwoStrings(str, LowerExp, UpperExp);
	int	nItems = str.GetSize();
	for (int iItem = 0; iItem < nItems; iItem++)
		Combo.AddString(str[iItem]);
}
예제 #4
0
void CChordEaseApp::StoreStringArray(LPCTSTR Section, const CStringArrayEx& Arr)
{
	int	nItems = Arr.GetSize();
	theApp.WriteProfileInt(Section, _T("Count"), nItems);
	for (int iItem = 0; iItem < nItems; iItem++) {
		CString	sKey;
		sKey.Format(_T("%d"), iItem);
		theApp.WriteProfileString(Section, sKey, Arr[iItem]);
	}
}
void CUSHourly::InitClass(const CStringArray& option)
{
	GetParamClassInfo().m_className.LoadString( IDS_SOURCENAME_US_HOURLY );

	CUIWeather::InitClass(option);

	ASSERT( GetParameters().GetSize() < I_NB_ATTRIBUTE);

	CStringArrayEx strList;
	strList.LoadString( IDS_PROPERTIES_ENVCAN_HOURLY);
	ASSERT( strList.GetSize() >= NB_ATTRIBUTE);

	
	GetParameters().Add( CParamDef(CParamDef::COMBO, CParamDef::BY_NUMBER, ATTRIBUTE_NAME[0], strList[0], CGlobal::GetMonths(), "0" ));
	GetParameters().Add( CParamDef(CParamDef::COMBO, CParamDef::BY_NUMBER, ATTRIBUTE_NAME[1], strList[1], CGlobal::GetMonths(), "11" ));
	GetParameters().Add( CParamDef(CParamDef::EDIT_BROWSE, ATTRIBUTE_NAME[2], strList[2]) );
	GetParameters().Add( CParamDef(CParamDef::COORD_RECT, ATTRIBUTE_NAME[3], strList[3]) );
//	GetParameters().Add( CParamDef(CParamDef::COMBO, CParamDef::BY_NUMBER, ATTRIBUTE_NAME[4], array[4], forceList, "4") );
//	GetParameters().Add( CParamDef(CParamDef::BOOL, ATTRIBUTE_NAME[5], array[5], "0") );
//	GetParameters().Add( CParamDef(CParamDef::BOOL, ATTRIBUTE_NAME[6], array[6], "1") );

}