void CGuiFolder::SelectFolder(int m_iNumFolder) { CFolderBar* cf = (CFolderBar*) m_ArrayFolder[m_iNumFolder]; if (cf) { DrawFolder(cf,mFlat); m_itemp = m_iSelected; m_iSelected = m_iNumFolder; EfectoScroll(); } }
void CGuiFolder::OnLButtonUp(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default int m_iNumBotton=m_ArrayFolder.GetSize(); for( int iCont=0; iCont< m_iNumBotton;iCont++) { CFolderBar* cit=(CFolderBar*)m_ArrayFolder[iCont]; if (cit->m_rect.PtInRect(point)) { DrawFolder(cit,mFlat); m_itemp=m_iSelected; m_iSelected=iCont; EfectoScroll(); } } CWnd::OnLButtonUp(nFlags, point); }