bool BOutlineListView::DoMiscellaneous(MiscCode code, MiscData* data) { if (code == B_SWAP_OP) return _SwapItems(data->swap.a, data->swap.b); return BListView::DoMiscellaneous(code, data); }
bool BListView::DoMiscellaneous(MiscCode code, MiscData* data) { if (code > B_SWAP_OP) return false; switch (code) { case B_NO_OP: break; case B_REPLACE_OP: return _ReplaceItem(data->replace.index, data->replace.item); case B_MOVE_OP: return _MoveItem(data->move.from, data->move.to); case B_SWAP_OP: return _SwapItems(data->swap.a, data->swap.b); } return false; }