Windows消息的消息映射中需要什么代码?
调用函数的代码:
SendMessage(GRID_WM_UPDATECELL,(WPARAM)1,(LPARAM)&sDisp);
函数:LRESULT CNJAGridCtrl::OnUpdateCell(WPARAM wParam, LPARAM lParam)
{
}
消息映射行应为
ON_MESSAGE(GRID_WM_UPDATECELL, OnUpdateCell)
,函数签名应该是
LRESULT CNJAGridCtrl::OnUpdateCell(WPARAM wParam, LPARAM lParam);