/*CBrush* pBrush=new CBrush;
pBrush->CreateSolidBrush(RGB(0,255,0));
// pDC->FillRect(&rc,pBrush);
pDC->SetBkMode(TRANSPARENT);
pDC->TextOut((rc.left+rc.right)/2-20,(rc.top+rc.bottom)/2-10,"Fight");
delete pBrush;*////////////////////////////saving up drawing attributes here if you'd like//select a null brush to avoid filling when draw 3-d rectangle
SelectObject(pDC->m_hDC,GetStockObject(NULL_BRUSH));
pDC->Draw3dRect(&rc,GetSysColor(COLOR_3DHILIGHT),GetSysColor(COLOR_3DDKSHADOW));CBrush br(RGB(0,255,0));
pDC->SetBkMode(TRANSPARENT);
char str[] = "Fight";
//output button title now
//force the text is drawed in both hort. and vert. center of button rectangle
pDC->DrawText(str,strlen(str),&rc,DT_SINGLELING|DT_CENTER|DT_VCENTER);
//needn't call br.DeleteObject(), destructor would do this//restoring drawing attributes if needed