void CFrame::resetButton() { int iCount; for (iCount = 0 ; iCount < m_arrControls.size() ; iCount++ ) { if (m_arrControls[iCount]->getType() == 2) { CButton *poButton; poButton = (CButton *)m_arrControls[iCount]->getControl(); if (poButton->isMouseDown()) { poButton->swapTextures(); poButton->setMouseDown(false); } } } }