void CBacnetProgram::OnNMDblclkListProgram(NMHDR *pNMHDR, LRESULT *pResult) { LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR); // TODO: Add your control notification handler code here OnBnClickedButtonProgramEdit(); *pResult = 0; }
// CBacnetProgramEdit message handlers LRESULT CBacnetProgram::OnHotKey(WPARAM wParam,LPARAM lParam) { if (wParam==KEY_INSERT) { OnBnClickedButtonProgramEdit(); } return 0; }