L_UpdatePanWindow (original) (raw)
Summary
Updates the Pan Window with the specified settings.
Syntax
#include "l_bitmap.h"
L_LTDIS_API L_INT L_UpdatePanWindow(hPanWindow, pBitmap, ulDisplayFlags, crPen, pszTitle, prcDst)
Parameters
L_HWND hPanWindow
Handle to the Pan Window.
pBITMAPHANDLE pBitmap
Pointer to the bitmap handle referencing the bitmap to be displayed in the PanWindow.
L_UINT ulDisplayFlags
Flags which determine how the image is painted in the Pan Window. For values, refer to Flags for the L_SetDisplayMode Function.
L_COLORREF crPen
COLORREF value that specifies the color of the pen to use for drawing the Pan Rect.
L_TCHAR* pszTitle
Character string containing the title bar string for the Pan Window. Pass NULL for no title bar string.
L_RECT* 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
Value | Meaning |
---|---|
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
Win32, x64, Linux.
See Also
Functions
Topics
Example
For an example, refer to L_CreatePanWindow.
LEADTOOLS Raster Imaging C API Help