#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& inRect, CWnd* parentWnd, UINT nId) { CRect rect = inRect; CRect imageRect; GetObjectImage(imageRect, "DLGITEM:Cancel"); rect.right = rect.left + imageRect.Width(); rect.bottom = rect.top + imageRect.Height(); return T2DlgItem::Create("DLGITEM:Cancel", style, rect, parentWnd, nId); }