设定初始值CString str(_T("Button")); COleVariant cOlevariant(str); pTypeProperty->SetOriginalValue(cOlevariant); pTypeProperty->ResetOriginalValue();