Example
The following example returns the user action in a message box.
C++
afx_msg void OnBeforeEditMode(UINT wParam, LONG lParam);
ON_MESSAGE(SSM_BEFOREEDITMODE, OnBeforeEditMode)
void CTestSpread7DllDlg::OnBeforeEditMode(UINT wParam, LONG lParam)
{
LPSS_BEFOREEDITMODE em = (LPSS_BEFOREEDITMODE)lParam;
char buf[10];
itoa(em->wUserAction, (LPSTR)buf, 10);
AfxMessageBox(buf);
}