Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Raster imaging C++ Class library help

Using a PanWindow

Show in webframe

The Pan Window is a small window which will display a scaled view of a bitmap, which is also being displayed in another main window at a size that would require scrolling. The Pan Window will maintain the images aspect ratio. In the Pan Window, a colored Pan Rect will be displayed to indicate the portion of the image currently being displayed in the main window.

When a user clicks inside the Pan Window and moves the mouse, while holding down the button, the Pan Rect will move with the mouse pointer. The Pan Window Callback function will notify the user that the main window should be updated. The Pan Window Callback function will be called after the Pan Window processes a WM_PAINT message, to allow the user to do custom painting or to be notified of interactive Pan Window updates.

The functions provided for working with a PanWindow are:

LBitmapWindow::CreatePanWnd

LBitmapWindow::DestroyPanWnd

LBitmapWindow::UpdatePanWnd

LBitmapWindow::PanWndCallBack

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.