예제 #1
0
void CTextureDlg::OnChangeOperation()
{
	int selectedIndex = GetSelectedItemIndex();
	if (selectedIndex == -1) return;
	CString stage = TextureList.GetItemText(selectedIndex, (int)TEXTURE_LIST_INDEX);
	int stageIndex = _ttoi(stage);

	int operation = OperationComboBox.GetCurSel();
	eTextureOperation  texOperation = eTextureOperation(operation);

	TextureList.SetItemText(selectedIndex, (int)TEXTURE_LIST_OPERATION, TextureOperation[operation]);
	CMainFrame* pMainFrm = (CMainFrame*)AfxGetMainWnd();
	ASSERT(pMainFrm);
	pMainFrm->ChangeTextureOpeation(stageIndex, texOperation);
	
}