L_UpdatePanWindow

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

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

For an example, refer to L_CreatePanWindow.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.