This method is called when the user presses the middle mouse button.
HRESULT OnMButtonDblClk(
[in] long Flags,
[in] int X,
[in] int Y,
[in, out] VARIANT* pbHandled)
Parameters:
Flags – Indicates whether various virtual keys are down. This parameter can be any combination of the following values:
MK_ LBUTTON = 1
MK_ RBUTTON = 2
MK_ SHIFT = 4
MK_CONTROL = 8
MK_ MBUTTON = 16
X – The X-coordinate of the mouse. The coordinates are given in screen coordinates, with the origin in the top-left corner of the 3D Window.
Y – The Y-coordinate of the mouse. The coordinates are given in screen coordinates, with the origin in the top-left corner of the 3D Window.
pbHandled – Setting this to TRUE informs TerraExplorer that the client handled the mouse action itself and does not wish TerraExplorer to respond to the mouse action. When the client sets this to FALSE, TerraExplorer handles the mouse action normally.