INT_PTR CManageBookmarksDialog::OnNotify(NMHDR *pnmhdr) { switch(pnmhdr->code) { case NM_DBLCLK: OnDblClk(pnmhdr); break; case NM_RCLICK: OnRClick(pnmhdr); break; case TBN_DROPDOWN: OnTbnDropDown(reinterpret_cast<NMTOOLBAR *>(pnmhdr)); break; case TVN_SELCHANGED: OnTvnSelChanged(reinterpret_cast<NMTREEVIEW *>(pnmhdr)); break; case LVN_ENDLABELEDIT: return OnLvnEndLabelEdit(reinterpret_cast<NMLVDISPINFO *>(pnmhdr)); break; case LVN_KEYDOWN: OnLvnKeyDown(reinterpret_cast<NMLVKEYDOWN *>(pnmhdr)); break; } return 0; }
BOOL CCheckBoxProp::PushChar(UINT nChar) { if (nChar == VK_SPACE) { OnDblClk(CPoint(-1, -1)); } return TRUE; }