OnMouseDownExt

Usage                  Boolean OnMouseDownExt(hMenu As LONGLONG, hDC As LONGLONG, Button As Integer, Shift As Integer, X As Long, Y As Long)

Description         Handles user interface tasks when the left or right mouse button is pressed. It must be called in response to the MouseDown event of the TIFF OCX. You can call the TIFF OCX GetDC method to retrieve a DC. After you have called this method, you must call the ReleaseDC method of the TIFF OCX.

Parameters         hMenu                   LONGLONG Custom pop-up menu

                             hDC                       LONGLONG DC to paint onto if necessary

                             Button                    Integer             Identifies the button that was pressed

                             Shift                       Integer             Corresponds to the state of the SHIFT, CTRL, and ALT keys when the button specified in the Button argument is pressed

                             X                             Long                X coordinate of the mouse pointer, pass MouseX property of the TIFF OCX to this parameter

                             Y                             Long                Y coordinate of the mouse pointer, pass MouseY property of the TIFF OCX to this parameter

Return value      True if repaint is necessary. The update area can be obtained by the AnnoUIGetUpdateRect method.

Programming Notes        See the MouseDown event in the Visual Basic help section for more information.

See AnnoCreateCustomMenu and AnnoAddCustomMenuItem methods for creating custom menus.

If you create a custom pop-up menu, this menu will be dispayed, when you click the right mouse button. So you can change the default pop-up menu in the annotation. When the user selects a menu item, an event will be raised. This event informs the user about the type of the selected annotation object and the selected menu item.