Public Attributes | |
NMHDR | hdr |
NMHDR structure that contains information about this notification message. | |
Notifications::NotificationType | type |
Notification type. | |
CGrid * | grid |
The grid that sends this notification. | |
HITEM | item |
Handle in the grid. | |
Common::CDataObject * | pDO |
The data object, associated with a handle. | |
ContextType | context |
The grid context to which a handle is related. | |
int | row |
Index of a line in the context. | |
CColumn * | column |
A column. | |
CWnd * | control |
Edit in place control if it exists. | |
IEditInPlace::StartReason | startReason |
Edit in place start reason. | |
IEditInPlace::StopReason | stopReason |
Edit in place stop reason. |
Related events identifiers:
GUI::Notifications::BeginEdit
GUI::Notifications::EndEdit
GUI::NM_GRIDEDIT* lpNotif = (GUI::NM_GRIDEDIT*) lParam;
Example: //File TestDlg.h class CTestDlg : public CDialog { ... protected: afx_msg void OnBeginEdit(NMHDR* pNMHDR, LRESULT* pResult); private: GUI::CGrid m_Grid; DECLARE_MESSAGE_MAP() }; //File TestDlg.cpp BEGIN_MESSAGE_MAP(CTestDlg, CDialog) ... ON_NOTIFY(GUI::Notifications::BeginEdit, IDC_GRID, OnBeginEdit) ... END_MESSAGE_MAP() void CTestDlg::OnBeginEdit(NMHDR* pNMHDR, LRESULT* pResult) { GUI::NM_GRIDEDIT* pItem = (GUI::NM_GRIDEDIT*)pNMHDR; //To do something... *pResult = 0; }
Copyright Dapfor 2007-2009 | Generated on Wed Jul 7 03:24:43 2010 for MFCGrid by 1.5.5 |