LEADTOOLS Raster Imaging C++ Class Library Help > Classes and Member Functions > LBitmapWindow > LBitmapWindow Member Functions > LBitmapWindow::PanWndCallBack |
#include "ltwrappr.h"
virtual L_VOID LBitmapWindow::PanWndCallBack(uFlag, prcPan)
L_UINT uFlag; |
/* flag that indicates the reason for the notification */ |
LPRECT prcPan; |
/* pointer to the Pan RECT */ |
Called to notify the main window of changes to the associated Pan Window.
Parameter |
Description |
|
uFlag |
Flag indicating the reason for the Pan Window notification. Possible values are: |
|
|
Value |
Meaning |
|
PANWIN_CREATED |
[0] Pan Window was created. |
|
PANWIN_UPDATED |
[1] Pan Window was updated/repainted. |
|
PANWIN_DESTROYED |
[2] Pan Window was destroyed. |
|
PANWIN_MOVED |
[3] Pan Window was moved. |
|
PANWIN_REPAINT |
[4] Pan Window was repainted. |
prcPan |
Pointer to a RECT that contains the current coordinates of the Pan Rect in 1:1 zoom factor, when uFlag = PANWIN_UPDATED. You must convert these coordinates to match your main window's current zoom factor. |
Returns
None
Comments
This function will be called when the Pan Window updates itself when responding to end-user input, or when the Pan Window repaints itself after being invalidated.
You can use this callback as a notification that the Pan Window has been updated by the end-user. You can also use this function to do your own custom painting in 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.
See Also
Functions: |
Example
For an example, refer to LBitmapWindow::CreatePanWnd.