BCGSuite for MFC
virtual BOOL CBCGPGridCtrl::OnBeginDrag ( CPoint  point)
virtual

Called by the framework every time a grid is about to start drag-and-drop operation.

Returns
If this method returns TRUE, a grid starts drag-and-drop operation. If this method returns FALSE, drag-and-drop operation is canceled.

By default this function sends BCGM_GRID_BEGINDRAG message to the grid's owner window and returns FALSE if message is not handled.

Override this method in a derived class to take custom actions before drag-and-drop operation begins. Return TRUE to enable drag-and-drop.

Alternatively, you can handle the BCGM_GRID_BEGINDRAG message.

Parameters
pointSpecifies the x- and y-coordinate of the cursor in grid control client coordinates.