diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-14 00:50:34 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-14 00:50:34 +0100 |
commit | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch) | |
tree | eaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2DrawableObject.cpp | |
download | t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip |
initial commit
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); +} |