BCGSuite for MFC
BCGCBPRODLLEXPORT UINT BCGM_GRID_ITEM_ENDINPLACEEDIT

This registered windows message is sent to the grid's owner window by default implementation of CBCGPGridCtrl::OnEndInplaceEdit.

Parameters
wParamID of the grid control
lParamreference to BCGPGRID_ITEM_INFO structure, which describes the grid item.
Returns
an application should return zero if it processes this message.

In BCGPGRID_ITEM_INFO::dwResultCode the sender saves the combination of CBCGPGridCtrl::EndEditResultFlags, which specifies the result of in-place edit.

Sample code:

Copy
1 class CYourOwnerWnd
2 {
3 //...
4  afx_msg LRESULT OnEndLabelEdit(WPARAM, LPARAM);
5 };
6 
7 BEGIN_MESSAGE_MAP(CYourOwnerWnd/*...*/)
8 //...
9  ON_REGISTERED_MESSAGE(BCGM_GRID_ITEM_ENDINPLACEEDIT, OnEndLabelEdit)
10 END_MESSAGE_MAP()
11 
12 LRESULT CYourOwnerWnd::OnEndLabelEdit(WPARAM wp, LPARAM lp)
13 {
14  int nCtrlId = (int)wp; // ID of the grid control
15 
16  BCGPGRID_ITEM_INFO* pii = (BCGPGRID_ITEM_INFO*)lp;
17  ASSERT(pii != NULL);
18 
19  CBCGPGridItem* pItem = pii->pItem; // Item
20  pii->nRow; // Row of an item
21  pii->nCol; // Column of an item
22  pii->dwResultCode; // Combination of EndEditResultFlags
23 
24  // TODO Add your code here
25 
26  return 0;
27 }