摘要:
The problem seems to be that when using Unicode instead of MBCS, setting TVIS_FOCUSED attribute resets TVIS_SELECTED for current selected item. Thus for shift selection the function DoPreSelection must be corrected by adding if (m_hSelect != hItem) SetItemState( m_hSelect, TVIS_SELECTED, TVIS_SELECT 阅读全文