3ds Max C++ API Reference
Loading...
Searching...
No Matches
iimageviewer.h File Reference
#include "maxheap.h"
#include "maxtypes.h"
#include "bitmap.h"

Classes

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

Macros

#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 IMaxBitmapViewerCreateIMaxBitmapViewer (Bitmap *pBitmap, IImageViewer::DisplayStyle displayStyle)
 
IMAGE_VIEW_API void ReleaseIMaxBitmapViewer (IMaxBitmapViewer *)
 

Macro Definition Documentation

◆ IMAGE_VIEW_API

#define IMAGE_VIEW_API   __declspec(dllimport)

◆ WM_BV_TOOLBAR_RIGHTCLICK

#define WM_BV_TOOLBAR_RIGHTCLICK   WM_USER + 0x8ac4

◆ MAX_BITMAP_VIEWER_CLASS

#define MAX_BITMAP_VIEWER_CLASS   _M("MaxBitmapViewerClass")

Function Documentation

◆ CreateIMaxBitmapViewer()

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.

◆ ReleaseIMaxBitmapViewer()

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.