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