void BWindow_DollCommand::CheckAutoClose(){ switch(GetSelectIndex()){ case BWND_DOLLCOMMAND_ATTACK: case BWND_DOLLCOMMAND_SKILL: autoClose = false; break; case BWND_DOLLCOMMAND_GUARD: autoClose = true; break; } }
void CActionCtrl::OnRButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default //int idx = GetSelectIndex(*this, point); //if(idx != -1)this->SetSelectionMark(idx); if(GetSelectIndex(*this, point) == -1) { this->SetSelectionMark(-1); } CListCtrl::OnRButtonDown(nFlags, point); }