Public Attributes | |
NMHDR | hdr |
NMHDR structure that contains information about this notification message. | |
Notifications::NotificationType | type |
Notification type. | |
CGrid * | grid |
The grid which sent this notification. | |
CHeader * | header |
Grid header. |
Related events identifiers:
GUI::Notifications::SortChanged
GUI::NM_GRIDSORT* lpNotif = (GUI::NM_GRIDSORT*) lParam;
Example: //File TestDlg.h class CTestDlg : public CDialog { ... protected: afx_msg void OnSortChanged(NMHDR* pNMHDR, LRESULT* pResult); private: GUI::CGrid m_Grid; DECLARE_MESSAGE_MAP() }; //File TestDlg.cpp BEGIN_MESSAGE_MAP(CTestDlg, CDialog) ... ON_NOTIFY(GUI::Notifications::SortChanged, IDC_GRID, OnSortChanged) ... END_MESSAGE_MAP() void CTestDlg::OnSortChanged(NMHDR* pNMHDR, LRESULT* pResult) { GUI::NM_GRIDSORT* pItem = (GUI::NM_GRIDSORT*)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 |