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

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

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

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