<< Return to Main Index

< Return to Class Index

class CGXOleViewer

This is the interface through which CGXOlePreview interacts with Ole objects. You can have any implementation of CGXOleViewer talking to the CGXOlePreview control. We provide a generic implementation of this interface called CGXGenericViewerImpl that can display and allow editing of any embedded OLE object. However this may not be suitable for your purpose in which case you have to write your custom viewer. This can then be plugged in. You will have to subclass CGXViewerManager and override CreateObject. You can use any ID to identify your object. This will be set as the user attribute GX_IDS_UA_OLEVIEWERID which you can then use in CreateObject to create the correct viewer.

#include <gxbrowse.h>

CGXOleViewer

Class Members