1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
void CMyStatic::DoPropExchange(CPropExchange* pPX)
{
ExchangeVersion(pPX, MAKELONG(_wVerMinor, _wVerMajor));
COleControl::DoPropExchange(pPX);
// TODO: Call PX_ functions for each persistent custom property.
CPictureHolder Pic;
Pic.CreateEmpty();
CString *pstrCaption =(CString *)&((CString &)InternalGetText());
if(pPX->GetVersion()>= (DWORD)MAKELONG(_wVerMinor, _wVerMajor))
{
PX_String(pPX,_T("Text"),*pstrCaption,_T("Static"));
PX_Picture(pPX,_T("ControlPicture"),m_Pic,Pic);
}
else
if(pPX->IsLoading())
{
PX_String(pPX,_T("Text"),*pstrCaption,_T("Static"));
PX_Picture(pPX,_T("ControlPicture"),m_Pic,Pic);
}
} |
Partager