Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. void DeviceSelectionDlg::OnDblclkDeviceList(NMHDR *pNMHDR, LRESULT *pResult)
  2. {
  3. LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);
  4.  
  5. int row = pNMItemActivate->iItem;
  6.  
  7. if (row >= 0)
  8. {
  9. selectedDevice_ = devices_[row];
  10. CDialog::OnOK();
  11. }
  12.  
  13. *pResult = 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement