Classes | Defines | Functions

iimageviewer.h File Reference

#include "maxheap.h"
#include "maxtypes.h"
#include "bitmap.h"

Go to the source code of this file.

Classes

class   IImageViewer
class   IImageViewer::PostDisplayCallback
class   IImageViewer::PreEventHandlerCallback
class   IMaxBitmapViewer

Defines

#define  IMAGE_VIEW_API   __declspec(dllimport)
#define  WM_BV_TOOLBAR_RIGHTCLICK   WM_USER + 0x8ac4
#define  MAX_BITMAP_VIEWER_CLASS   _M("MaxBitmapViewerClass")

Functions

IMAGE_VIEW_API IMaxBitmapViewer CreateIMaxBitmapViewer (Bitmap *pBitmap, IImageViewer::DisplayStyle displayStyle)
IMAGE_VIEW_API void  ReleaseIMaxBitmapViewer (IMaxBitmapViewer *)

Define Documentation

#define IMAGE_VIEW_API   __declspec(dllimport)

Definition at line 29 of file iimageviewer.h.

#define WM_BV_TOOLBAR_RIGHTCLICK   WM_USER + 0x8ac4

Definition at line 38 of file iimageviewer.h.

#define MAX_BITMAP_VIEWER_CLASS   _M("MaxBitmapViewerClass")

Definition at line 40 of file iimageviewer.h.


Function Documentation

IMAGE_VIEW_API IMaxBitmapViewer* CreateIMaxBitmapViewer ( Bitmap pBitmap,
IImageViewer::DisplayStyle  displayStyle 
)
Remarks:
This function allows you to create a new bitmap viewer as either a floating window or docked in a viewport.
Parameters:
Bitmap* pBitmap

The bitmap to use with the viewer. This should not be NULL.

IImageViewer::DisplayStyle displayStyle

The display style for the viewer, which is either IV_FLOATING or IV_DOCKED.
Returns:
A pointer to a new IMaxBitmapViewer or NULL if the viewer could not be created.
IMAGE_VIEW_API void ReleaseIMaxBitmapViewer ( IMaxBitmapViewer )
Remarks:
This method will delete and release the specified bitmap viewer. This method should not be used while the viewer is being displayed. Use UnDisplay() or Hide() before calling this method.
Parameters:
IMaxBitmapViewer *

A pointer to the viewer.