| 297 | |
| 298 | |
| 299 | void CCryptAboutPropertyPage::OnItemchangedComponentsList(NMHDR *pNMHDR, LRESULT *pResult) |
| 300 | { |
| 301 | LPNMLISTVIEW pNMLV = reinterpret_cast<LPNMLISTVIEW>(pNMHDR); |
| 302 | // TODO: Add your control notification handler code here |
| 303 | *pResult = 0; |
| 304 | |
| 305 | if (pNMLV->uNewState & LVIS_SELECTED) { |
| 306 | |
| 307 | CWnd *pWnd = GetDlgItem(IDC_INFO); |
| 308 | |
| 309 | if (pWnd) { |
| 310 | if (pNMLV->iItem < sizeof(licenses) / sizeof(licenses[0])) { |
| 311 | pWnd->SetWindowTextW(lf_to_crlf(licenses[pNMLV->iItem])); |
| 312 | } else { |
| 313 | pWnd->SetWindowTextW(L""); |
| 314 | } |
| 315 | pWnd->PostMessageW(WM_CLEAR, 0, 0); |
| 316 | } |
| 317 | } |
| 318 | } |
nothing calls this directly
no test coverage detected