This registered windows message is sent to the grid's owner window by the default implementation of CBCGPGridCtrl::OnBeginDrag.
    4        afx_msg LRESULT OnNotifyBeginDrag(WPARAM, LPARAM);
 
    8 BEGIN_MESSAGE_MAP(CYourOwnerWnd /*...*/)
 
   10        ON_REGISTERED_MESSAGE(BCGM_GRID_BEGINDRAG , OnNotifyBeginDrag)
 
   13 LRESULT CYourOwnerWnd::OnNotifyBeginDrag(WPARAM wp, LPARAM lp)
 
   15        int nCtrlId = (int)wp;            // ID of the grid control
 
   17        CPoint point;                     // Mouse coordinates
 
   18        POINTSTOPOINT (point, lParam);    //
 
   20        // TODO Add your code here
 
   22        return TRUE; // to start Drag-and-Drop