BOOL UC_PropertyPagePoint::OnInitDialog() { FW_PropertyPage::OnInitDialog(); SetObj(m_pDLPoint); // TODO: Add extra initialization here return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
void XFileTransferProxy::Build( void ) { XFileTransfer *pFileTransfer; if ( !TestObj() ) { pFileTransfer = new XFileTransfer; SetObj( pFileTransfer ); } }
CDamageSource::CDamageSource (CSpaceObject *pSource, DestructionTypes iCause, CSpaceObject *pSecondarySource, const CString &sSourceName, DWORD dwSourceFlags) : m_iCause(iCause), m_dwFlags(0), m_sSourceName(sSourceName), m_dwSourceNameFlags(dwSourceFlags) // CDamageSource constructor { SetObj(pSource); m_pSecondarySource = (pSecondarySource && !pSecondarySource->IsDestroyed() ? pSecondarySource : NULL); }
//**************************** void CObjInfo::OnCloseObj() { if(GetTree()) { GetTree()->RemoveFromList(GetObj(),GetObjName()); SetTree(0); } else { if(bDeleteObj&&GetObj()) { delete GetObj(); SetObj(0); } } };
CFormObjectDoc::CFormObjectDoc() { SetObj(afxMetaObj); SetTree(afxMetaTree); }