Sep 28, 2001 #1 fheyn Programmer Mar 22, 2001 198 DE I'd like to change CLISTCTRL - property between multiline selection and single selection at runtime. Has anyone out there got an idea how to do that ?
I'd like to change CLISTCTRL - property between multiline selection and single selection at runtime. Has anyone out there got an idea how to do that ?
Sep 28, 2001 #2 Guest_imported New member Jan 1, 1970 0 set single selection style: DWORD style = GetWindowLong(m_hWnd,GWL_STYLE); SetWindowLong(m_hWnd,GWL_STYLE,style | LVS_SINGLESEL); set multi selection style: DWORD style = GetWindowLong(m_hWnd,GWL_STYLE); SetWindowLong(m_hWnd,GWL_STYLE,style & ~LVS_SINGLESEL); Upvote 0 Downvote
set single selection style: DWORD style = GetWindowLong(m_hWnd,GWL_STYLE); SetWindowLong(m_hWnd,GWL_STYLE,style | LVS_SINGLESEL); set multi selection style: DWORD style = GetWindowLong(m_hWnd,GWL_STYLE); SetWindowLong(m_hWnd,GWL_STYLE,style & ~LVS_SINGLESEL);
Oct 1, 2001 Thread starter #3 fheyn Programmer Mar 22, 2001 198 DE thanks jfhuang tried it out - it works Upvote 0 Downvote