Jak
Jak

Reputation: 499

c++ MFC and handling windows Messages

What code is needed in the message map for Windows messages?

The code calling the function:

SendMessage(GRID_WM_UPDATECELL,(WPARAM)1,(LPARAM)&sDisp);

The function:

LRESULT CNJAGridCtrl::OnUpdateCell(WPARAM wParam, LPARAM lParam)
{
}

Upvotes: 0

Views: 917

Answers (1)

ScottMcP-MVP
ScottMcP-MVP

Reputation: 10425

The message map line should be

ON_MESSAGE(GRID_WM_UPDATECELL, OnUpdateCell) 

and the function signature should be

LRESULT CNJAGridCtrl::OnUpdateCell(WPARAM wParam, LPARAM lParam);

Upvotes: 1

Related Questions