#include "BIDISP.H"
VOID CALLBACK M_StretchBitmap( HBITMAP hBitmap,
int X,
int Y,
int nWidth,
int nHeight)
Description
This function should be called in response to the WM_MOUSEMOVE message or whenever one wants to update the magnifying window. This function calling sequence should be:
1, M_CalcRect() calculate area of bitmap to be displayed.
2, M_StretchBitmap() stretch the bitmap into a background bitmap.
3, M_CopyBitmap() copy the bitmap into a magnifying window.
Having three separate function calls for displaying the magnified bitmap will enable us to build custom and more elaborate magnifying windows in the future.
Parameters
|
HBITMAP |
hBitmap |
The handle for the bitmap. |
|
int |
X |
The mouse X screen coordinate. |
|
int |
Y |
The mouse Y screen coordinate. |
|
int |
nWidth |
The bitmap width returned by M_CalcRect() lpOutPut parameter. |
|
int |
nHeight |
The bitmap height returned by M_CalcRect() lpOutPut parameter. |
Return values
None.
Requirements
Header : Declared in BIDisp.h; include BIDisp.h.
Library : Use BIDisp.lib.
DLLs : BIDisp.dll.