L_UpdatePanWindow
#include "l_bitmap.h"
L_LTDIS_API L_INT L_UpdatePanWindow(hPanWindow, pBitmap, ulDisplayFlags, crPen, pszTitle, prcDst)
L_HWND hPanWindow; |
/* handle to the Pan Window */ |
pBITMAPHANDLE pBitmap; |
/* pointer to the bitmap handle */ |
L_UINT ulDisplayFlags; |
/* display flags */ |
L_COLORREF crPen; |
/* color for the Pan Rect */ |
L_TCHAR* pszTitle; |
/* title string for the Pan Window */ |
L_RECT* prcDst; |
/* main window's paint dest rect */ |
Updates the Pan Window with the specified settings.
Parameter |
Description |
hPanWindow |
Handle to the Pan Window. |
pBitmap |
Pointer to the bitmap handle referencing the bitmap to be displayed in the PanWindow. |
ulDisplayFlags |
Flags which determine how the image is painted in the Pan Window. For values, refer to Flags for the L_SetDisplayMode Function. |
crPen |
COLORREF value that specifies the color of the pen to use for drawing the Pan Rect. |
pszTitle |
Character string containing the title bar string for the Pan Window. Pass NULL for no title bar string. |
prcDst |
Pointer to a rect containing the main window's paint destination rect. This is used to determine the location of the Pan Rect in the Pan Window and the current zoom factor. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Call this function immediately after creating the Pan Window to make it visible, and to set the location of the Pan Rect. Then, anytime the main window's paint destination rect changes, or any time the main window scrolls, call this function to update the Pan Window.
Required DLLs and Libraries
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Platforms
Windows 2000 / XP/Vista.
See Also
Functions: |
|
Topics: |
Example
For an example, refer to L_CreatePanWindow.