From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2DlgItemTab.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'src/T2DLL/T2DlgItemTab.h') diff --git a/src/T2DLL/T2DlgItemTab.h b/src/T2DLL/T2DlgItemTab.h index 234cd0a..f728837 100644 --- a/src/T2DLL/T2DlgItemTab.h +++ b/src/T2DLL/T2DlgItemTab.h @@ -1,15 +1,20 @@ #pragma once #include "common.h" +#include "T2DlgItem.h" -class T2DlgItemTab { +class CustomTabControl; + +class AFX_EXT_CLASS T2DlgItemTab : public T2DlgItem { public: - T2DlgItemTab(T2TowerDoc*, T2ImageObj*, CPalette*); + T2DlgItemTab(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette); virtual ~T2DlgItemTab(); - virtual int OnT2DlgItemCreate(CREATESTRUCTA*); - virtual void SetFont(HFONT); - virtual void CreateSubItem(void*); + virtual int OnT2DlgItemCreate(CREATESTRUCT* cs); + virtual void SetFont(HFONT inFont); + virtual void CreateSubItem(void* inData); + virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); + protected: - virtual int OnT2DlgItemEraseBkgnd(CDC*); -public: - virtual long WindowProc(unsigned int, unsigned int, long); + virtual BOOL OnT2DlgItemEraseBkgnd(CDC* pDC); + + CustomTabControl *mSubItem; }; -- cgit v1.2.3