void CRichText.SetSelAlignment (const VARIANT& newValue) newValue.vt=2; newValue.iVal=0;//0为左对齐(默认),1为右对齐,2为居中。