Time:10-10
CodePudding user response:
double-click response message
BOOL CDlg2Dlg: : OnNotify (WPARAM WPARAM, LPARAM LPARAM, LRESULT * pResult) {//TODO: add in this dedicated code and/or call the base class LParam NMHDR * pNMHDR=(NMHDR *); If (pNMHDR - & gt; HwndFrom==m_wndShellList. M_hWnd & & PNMHDR - & gt; Code==NM_DBLCLK) {LPNMITEMACTIVATE pNMItemActivate=reinterpret_cast & lt; LPNMITEMACTIVATE> (pNMHDR); //Add your code here * pResult=0; Return TRUE; } Return CDialog: : OnNotify (wParam, lParam pResult); }
Page link:https//www.codepudding.com/Softwareengineering/61054.html