<< Return to Main Index

< Return to Class Index

CGXGridCore::EnableOleDataSource

BOOL EnableOleDataSource(DWORD dwFlags = GX_DNDTEXT | GX_DNDSTYLES | GX_DNDCOMPOSE | GX_DNDDIFFRANGEDLG);

dwFlags

You can specify and combine the following options:

Return Value

TRUE if OLE Drag&Drop functionality could be initialized; FALSE if initialization failed.

Remarks

Call this function to enable OLE Drag&Drop functionality in the grid for dragging cells to other OLE Drag&Drop-enabled applications.

Example:

void CMyGridView::OnInitialUpdate()
{
#if _MFC_VER >= 0x0400
   EnableOleDropTarget(GX_DNDEGDESCROLL | GX_DNDAUTOSCROLL | GX_DNDTEXT | GX_DNDSTYLES);
   EnableOleDataSource();
#endif

   CGXGridView::OnInitialUpdate();
}

Control-Factory Specific ->

Make sure that OLE Drag&Drop support has been linked into the grid library. See the section "Reducing the size of your application" in the user's guide how to remove or include Ole Drag&Drop support from the grid library using the Build Wizard.

END Control-Factory Specific

See Also

CGXGridCore::DndStartDragDrop CGXGridDropTarget CGXGridCore::m_nClipboardFlags

CGXGridCore

Class Overview | Class Members