Detailed Description
- See also:
- Class IImageViewer, Class Bitmap, Class CropCallback
- Description:
- This class is available in release 4.0 and later only.
This class represents an abstract interface class for a default
bitmap viewer.
The following functions are available for use but are not part of
the class IMaxBitmapViewer.
Note that the minimum size of the floating window is 390 x
325.
#include <iimageviewer.h>
List of all
members.
Member Function Documentation
virtual void SetBitmap |
( |
Bitmap * |
pBitmap |
) |
[pure virtual] |
- Parameters:
- Bitmap* pBitmap
A pointer to the bitmap to display.
virtual Bitmap* GetBitmap |
( |
|
) |
const [pure virtual] |
virtual void SetCropCB |
( |
CropCallback * |
pCropCallback |
) |
[pure virtual] |
- Parameters:
- CropCallback* pCropCallback
A pointer to the callback function to set.
virtual void SetAutonomous |
( |
bool |
isAutonomous |
) |
[pure virtual] |
- Parameters:
- bool isAutonomous
TRUE to set the viewer to autonomous, otherwise FALSE.
virtual bool GetAutonomous |
( |
|
) |
const [pure virtual] |
virtual void SetCurrentPosition |
( |
WindowPosition |
currentPosition |
) |
[pure virtual] |
virtual void SetShowSaveButton |
( |
bool |
showSaveButton |
) |
[pure virtual] |
- Parameters:
- bool showSaveButton
TRUE to show; FALSE to hide.
virtual bool GetShowSaveButton |
( |
|
) |
const [pure virtual] |
virtual bool Display |
( |
MCHAR * |
title, |
|
|
WindowPosition |
position =
WPos_Center |
|
) |
|
[pure virtual] |
- Parameters:
- MCHAR *title
The title of the window to set.
WindowPosition position = WPos_Center
The window position you wish to set, which is one of the following
enum values; WPos_NULL, WPos_UpperLeft, WPos_LowerLeft,
WPos_UpperRight, WPos_LowerRight, WPos_Center.
- Returns:
- TRUE if successful, otherwise FALSE.
virtual bool Display |
( |
MCHAR * |
title, |
|
|
HWND |
hParent, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
|
[pure virtual] |
- Parameters:
- MCHAR *title
The title of the window to set.
HWND hParent
A handle to the parent window.
int x, y, h, w
The position and dimensions of the window.
Note that these parameters will be ignored unless 'Current
Position' is WPos_NULL.
- Returns:
- TRUE if successful, otherwise FALSE.
virtual bool UnDisplay |
( |
|
) |
[pure virtual] |
virtual void ClearScreen |
( |
|
) |
[pure virtual] |
virtual POINT XFormScreenToBitmap |
( |
const POINT & |
pt |
) |
const [pure virtual] |
- Parameters:
- const POINT &pt
The point on screen.
virtual POINT XFormBitmapToScreen |
( |
const POINT & |
pt |
) |
const [pure virtual] |
- Parameters:
- const POINT &pt
The point on the bitmap.
virtual Rect XFormScreenToBitmap |
( |
const Rect & |
rect |
) |
const [pure virtual] |
- Parameters:
- const Rect &rect
The screen rectangle.
virtual Rect XFormBitmapToScreen |
( |
const Rect & |
rect |
) |
const [pure virtual] |
- Parameters:
- const Rect &rect
The bitmap rectangle.
virtual void ShowToolbar |
( |
bool |
show |
) |
[pure virtual] |
- Parameters:
- bool show
TRUE to show; FALSE to hide.
virtual void ToggleToolbar |
( |
|
) |
[pure virtual] |
virtual void GetDrawableRect |
( |
Rect
& |
drawableRect |
) |
[pure virtual] |
- Parameters:
- Rect& drawableRect
The client area.
virtual void RefreshWindow |
( |
Rect
* |
pRefreshRegion =
NULL |
) |
[pure virtual] |
- Parameters:
- Rect* pRefreshRegion = NULL
The region of the window you wish to refresh.
- Parameters:
- Interface_ID id
The interface ID.
- Default Implementation:
- { return NULL; }
Reimplemented from IImageViewer.
{ UNUSED_PARAM(id); return NULL; }
IMaxBitmapViewer IMaxBitmapViewer
IMaxBitmapViewer IMaxBitmapViewer IMaxBitmapViewer IMaxBitmapViewer
IMaxBitmapViewer IMaxBitmapViewer IMaxBitmapViewer
IMaxBitmapViewer
IMaxBitmapViewer IMaxBitmapViewer
IMaxBitmapViewer IMaxBitmapViewer IMaxBitmapViewer IMaxBitmapViewer
IMaxBitmapViewer IMaxBitmapViewer IMaxBitmapViewer
IMaxBitmapViewer