afx_msg LRESULT OnDblClick(WPARAM wp, LPARAM lp);
ON_REGISTERED_MESSAGE(BCGM_GRID_ITEM_DBLCLICK, OnDblClick) //双击消息
双击响应消息如下:
LRESULT CSimpleGridSampleDlg::OnDblClick(WPARAM wp, LPARAM lp)
{
CBCGPGridRow* pRow = (CBCGPGridRow*)lp;
if (pRow == NULL)
{
return 0;
}
ASSERT_VALID(pRow);
return TRUE;
}