diff options
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2DrawableObject.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/T2DLL/T2DrawableObject.cpp b/src/T2DLL/T2DrawableObject.cpp new file mode 100644 index 0000000..5775da7 --- /dev/null +++ b/src/T2DLL/T2DrawableObject.cpp @@ -0,0 +1,38 @@ +#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); +} |