<< Return to Main Index

< Return to Class Index

CGXGridCore::EnableOleDropTarget

void EnableOleDropTarget(DWORD dwFlags = GX_DNDEGDESCROLL|GX_DNDAUTOSCROLL|GX_DNDTEXT|GX_DNDSTYLES);

dwFlags

Specifies the drop target behavior. dwFlags can be a combination of any of the following flags:

GX_DNDEGDESCROLL - enable autoscrolling when user drags the mouse near the edge inside of the drop target window.

This method simplifies the registration of a grid as drop target compared to the steps necessary with Objective Grid version 6.0 or earlier.

Simply call

   EnableOleDropTarget();
   EnableOleDataSource();

at grid initialization time.

If you want to customize the OLE Dnd behavior you can pass a combination of flags as parameter.

Example:

   EnableOleDropTarget(GX_DNDEGDESCROLL | GX_DNDAUTOSCROLL | GX_DNDTEXT | GX_DNDSTYLES);

You can still continue to use the old approach with embedding a CGXGridDropTarget as member variable into your grid or parent dialog, This old approach will also be supported in future but we recommend that you use the newer approach when you write new grids.

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.

END Control-Factory Specific

See Also

CGXGridCore::EnableOleDataSource CGXGridDropTarget

CGXGridCore

Class Overview | Class Members