MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / OnItemchangedComponentsList

Method OnItemchangedComponentsList

cppcryptfs/ui/CryptAboutPropertyPage.cpp:299–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298
299void 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}

Callers

nothing calls this directly

Calls 1

lf_to_crlfFunction · 0.85

Tested by

no test coverage detected