예제 #1
0
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
}
예제 #2
0
void XFileTransferProxy::Build( void )
{
    XFileTransfer *pFileTransfer;

    if ( !TestObj() )
    {
        pFileTransfer = new XFileTransfer;

        SetObj( pFileTransfer );
    }
}
예제 #3
0
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);
	}
예제 #4
0
//****************************
void CObjInfo::OnCloseObj()
{
	if(GetTree())
	{
		GetTree()->RemoveFromList(GetObj(),GetObjName());
		SetTree(0);
	}
	else
	{
		if(bDeleteObj&&GetObj())
		{
			delete 	GetObj();
			SetObj(0);
		}
	}
};
예제 #5
0
CFormObjectDoc::CFormObjectDoc()
{
	SetObj(afxMetaObj);
	SetTree(afxMetaTree);
}