<< Return to Main Index

< Return to Class Index

class CGXNoOleDataSourceProxy

CGXNoOleDataSourceProxy objects are used to pass COleDataSource objects to the OLE Drag&Drop overridables in CGXGridCore.

If you override a method which receives a CGXNoOleDataSourceProxy object as parameter, you should insert the following lines in your code to get a pointer to the COleDataSource object:

COleDataSource* pDataSource =
   ((CGXOleDataSourceProxy*) pSrcItem)->GetOleDataSource();

The only reason for this proxy class is to avoid dependencies to the OLE libraries in Objective Grid. Only when you call EnableOleDataSource EnableOleDataSource or CGXGridDropTarget::Register will you have to link your application with the OLE libraries.

#include <gxall.h>

See Also

CGXGridCore::EnableOleDataSource CGXGridCore::OnDndCacheGlobalData CGXGridDropTarget::Register