typedef struct tagDISPLAYSTRUCT
{
RECT rOrigo;
UINT wDisplayFormat;
RECT rcScrollRange;
POINT pScrollPos;
RECT rcScale;
POINT pOffset;
POINT pBitmapSize;
int biBitCount;
RECT rcClient;
POINT ptOrg;
POINT pDPIDC;
POINT pDPIBitmap;
HPALETTE hPal;
HDIB hDIBBitmap;
HBITMAP hBitmap;
WORD wInternal;
void *StretchFunc;
long StretchData;
BOOL bIsBgTransparent;
COLORREF cBgColor;
} DISPLAYSTRUCT , FAR * LPDISPLAYSTRUCT;
Description
The DisplayWmCreate() function will set all of the parameters automatically.
Members of the structure
|
RECT |
rOrigo |
DC Origin |
|
|
UINT |
wDisplayFormat |
Display Format Bitfield |
|
|
|
|||
|
|
DISP_NEWDIB |
- Regenerate a new BITMAP internally. |
|
|
|
DISP_NORMAL |
- Display image pixel by pixel. |
|
|
|
DISP_PREVIEW |
- Forces the image to fit into the window client area using DPI information and unique scaling factors in both the vertical and horizontal direction. |
|
|
|
DISP_INVERT |
- Displays the image as an inverted image. |
|
|
|
DISP_SCALED |
- Use DPI information for displaying image. |
|
|
|
DISP_CENTER |
- Forces the image to be aligned in the center of the window. |
|
|
|
DISP_FITSCREEN |
- Forces the image to fit into the window client area using unique scaling factors in both the vertical and horizontal direction. |
|
|
|
DISP_NOVERTSCROLL |
- Prevents the vertical scroll bar from being shown. |
|
|
|
DISP_NOHORZSCROLL |
- Prevents the horizontal scroll bar from being shown. |
|
|
|
DISP_FITTOWIDTH |
- Forces the image to fit to width of the window client area using unique scaling factors. |
|
|
|
DISP_FITTOHEIGHT |
- Forces the image to fit to the height of the window client area using unique scaling factors. |
|
|
|
DISP_ZOOMED |
- This macro hasn’t been used in the SDK functions. For DISP_ZOOMED user has to set rcScale factor. |
|
|
RECT |
rcScrollRange |
Scroll Ranges Min Max |
|
|
POINT |
pScrollPos |
Scroll Position |
|
|
RECT |
rcScale |
Scaling factor |
|
|
POINT |
pOffset |
Display Offset in Client coordinates |
|
|
POINT |
pBitmapSize |
Bitmap Size in Pixels |
|
|
int |
biBitCount |
Bits per Pixel |
|
|
RECT |
rcClient |
Viewport Client Rectangle |
|
|
POINT |
ptOrg |
Window Origin |
|
|
POINT |
pDPIDC |
ViewPort Resolution |
|
|
POINT |
pDPIBitmap |
Bitmap Resolution |
|
|
HPALETTE |
hPal |
DIB Palette |
|
|
HDIB |
hDIBBitmap |
DIB Handle |
|
|
HBITMAP |
hBitmap |
Bitmap Handle |
|
|
WORD |
wInternal |
Internal Flags |
|
|
void |
*StretchFunc |
Future use |
|
|
Long BOOL
COLORREF |
StretchData blsBgTransparent
cBgColor |
Future use If TRUE the background is transparent. If FALSE the cBgColor is used as background color Background color |
|
Requirements
Header : Declared in BiDisp.h.