|
#include <Dapfor/GUI/Notifications.h>
Public Attributes | |
| NMHDR | hdr |
| NMHDR structure that contains information about this notification message. | |
| Notifications::NotificationType | type |
| Notificaition type. | |
| CGrid * | grid |
| The grid which sends this notification. | |
| CDragSource * | dragSource |
| Source of a content. | |
| CDropTarget * | dropTarget |
| Location where a clipboard content is to be dropped. | |
| DROPEFFECT | effect |
| Drop effect. One of the next values: DROPEFFECT_COPY, DROPEFFECT_MOVE, DROPEFFECT_LINK, DROPEFFECT_NONE. | |
Related events identifiers:
GUI::Notifications::BeginDrag
GUI::Notifications::EndDrag
GUI::Notifications::BeginDrop
GUI::Notifications::EndDrop
GUI::NM_GRIDDRAGDROP* lpNotif = (GUI::NM_GRIDDRAGDROP*) lParam;
Example: //File TestDlg.h class CTestDlg : public CDialog { ... protected: afx_msg void OnBeginDrag(NMHDR* pNMHDR, LRESULT* pResult); private: GUI::CGrid m_Grid; DECLARE_MESSAGE_MAP() }; //File TestDlg.cpp BEGIN_MESSAGE_MAP(CTestDlg, CDialog) ... ON_NOTIFY(GUI::Notifications::BeginDrag, IDC_GRID, OnBeginDrag) ... END_MESSAGE_MAP() void CTestDlg::OnBeginDrag(NMHDR* pNMHDR, LRESULT* pResult) { GUI::NM_GRIDDRAGDROP* pItem = (GUI::NM_GRIDDRAGDROP*)pNMHDR; //To do something... *pResult = 0; }
| Copyright Dapfor 2007-2009 | Generated on Sat Jan 30 15:01:28 2010 for MFCGrid by 1.5.5 |