summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DlgItemCANCEL.cpp
blob: 8b0a197385f89fb5731b47df43d87548f4dc1bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "T2DlgItemCANCEL.h"

T2DlgItemCANCEL::T2DlgItemCANCEL(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette)
    : T2DlgItemIButton(inDoc, inImageObj, inPalette)
{
}

/*virtual*/ BOOL T2DlgItemCANCEL::Create(const char* windowName, DWORD style, const RECT& rect, CWnd* parentWnd, UINT nId) {
    CRect rectToUse = rect;
    CRect imageRect;
    GetObjectImage(imageRect, "DLGITEM:Cancel");

    rectToUse.right = rectToUse.left + imageRect.Width();
    rectToUse.bottom = rectToUse.top + imageRect.Height();
    return T2DlgItem::Create("DLGITEM:Cancel", style, rectToUse, parentWnd, nId);
}