#include "StdAfx.h" #include "T2DrawableObject.h" #include "T2InfoDialog.h" T2DrawableObject::T2DrawableObject() { } /*virtual*/ T2DrawableObject::~T2DrawableObject() { } /*virtual*/ void T2DrawableObject::Draw(T2TowerDoc* towerDoc, const RECT& rect) { DrawSelf(towerDoc, rect); } /*virtual*/ void T2DrawableObject::DrawSelf(T2TowerDoc*, const RECT&) { } /*virtual*/ T2InfoDialog* T2DrawableObject::ShowInfoDialog(T2TowerDoc* towerDoc) { CRect rect; AfxGetMainWnd()->GetWindowRect(rect); T2DLGTEMPLATE tmpl; tmpl.pt = rect.CenterPoint(); tmpl.moduleHandle = AfxGetInstanceHandle(); tmpl.resID = 1000; T2InfoDialog *dialog = ConstructInfoDialog(); dialog->Realize(this, &tmpl, towerDoc, NULL, NULL, true, NULL, 0, 1); return dialog; } /*virtual*/ T2InfoDialog* T2DrawableObject::ConstructInfoDialog() { return new T2InfoDialog(this); } /*virtual*/ void T2DrawableObject::DrawHitMask(T2TowerDoc*) { #line 78 _ASSERT(0); }