summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ToolWindow.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-01 02:43:29 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-01 02:43:29 +0100
commit5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (patch)
tree62cf542c68d91aa6f7a4e3bfa9eddca4ab352970 /src/T2DLL/T2ToolWindow.cpp
parentc0c336500955a23e344651e5412c9d9d441ef4ee (diff)
downloadt2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz
t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip
i am in hell
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2ToolWindow.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/T2DLL/T2ToolWindow.cpp b/src/T2DLL/T2ToolWindow.cpp
index 08ade6c..346f1e8 100644
--- a/src/T2DLL/T2ToolWindow.cpp
+++ b/src/T2DLL/T2ToolWindow.cpp
@@ -1,5 +1,5 @@
#include "CT2App.h"
-#include "GlobalFunc.h"
+#include "T2DLL.h"
#include "T2ImageObj.h"
#include "T2MainWindow.h"
#include "T2TemplatePluginList.h"
@@ -8,15 +8,18 @@
#include "T2TowerDoc.h"
#include "T2WorldDef.h"
-CObject* PASCAL T2ToolWindow::CreateObject() {
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#undef THIS_FILE
+static char THIS_FILE[] = __FILE__;
+#endif
+
#line 16
- return DEBUG_NEW T2ToolWindow;
-}
-IMPLEMENT_DYNAMIC(T2ToolWindow, CFrameWnd);
+IMPLEMENT_DYNCREATE(T2ToolWindow, CFrameWnd);
T2ToolWindow::T2ToolWindow() {
#line 20
- mToolIconList = DEBUG_NEW T2ToolIconList;
+ mToolIconList = new T2ToolIconList;
mDocument = NULL;
mWorldDef = NULL;
@@ -48,6 +51,7 @@ BEGIN_MESSAGE_MAP(T2ToolWindow, CFrameWnd)
ON_WM_MOUSEMOVE()
ON_WM_LBUTTONDBLCLK()
ON_WM_TIMER()
+ ON_WM_SIZE()
ON_WM_DESTROY()
ON_WM_CLOSE()
END_MESSAGE_MAP()
@@ -125,7 +129,7 @@ afx_msg int T2ToolWindow::OnCreate(LPCREATESTRUCT lpCreateStruct) {
}
#line 145
- T2ToolIconItem *theItem = DEBUG_NEW T2ToolIconItem;
+ T2ToolIconItem *theItem = new T2ToolIconItem;
theItem->mID = AssignNewID();
theItem->mName = inName;
theItem->mValiation = inValiation;
@@ -179,7 +183,7 @@ afx_msg int T2ToolWindow::OnCreate(LPCREATESTRUCT lpCreateStruct) {
/*virtual*/ void T2ToolWindow::RemoveAll() {
delete mToolIconList;
#line 204
- mToolIconList = DEBUG_NEW T2ToolIconList;
+ mToolIconList = new T2ToolIconList;
ListUpdated();
SelChange(1);
@@ -555,7 +559,7 @@ afx_msg void T2ToolWindow::OnDestroy() {
);
#line 615
- mListCtrl = DEBUG_NEW CListCtrl;
+ mListCtrl = new CListCtrl;
mListCtrl->Create(
LVS_REPORT | LVS_SINGLESEL | WS_VSCROLL | WS_VISIBLE | WS_CHILD,