Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在对话框中有一个列表视图。当我选择列表中的某个项目时,它已被选中。当我从列表中删除焦点(例如,单击另一个窗口)时,选择消失了。如何使其变灰(非活动)但留在列表中?
有一种风格叫LVS_SHOWSELALWAYS。在运行时使用:
LVS_SHOWSELALWAYS
DWORD dwStyle = m_list.GetExtendedStyle(); dwStyle |= LVS_SHOWSELALWAYS; m_list.SetExtendedStyle(dwStyle);