共用方式為


IVsIntelliMouseHandler.DrawBitmap_ Method

Draws or erases the bitmap used for panning with the Intellisense mouse.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣告
Function DrawBitmap_ ( _
    ByRef lpPanBitmap As UInteger, _
    fErase As Integer _
) As Integer
'用途
Dim instance As IVsIntelliMouseHandler
Dim lpPanBitmap As UInteger
Dim fErase As Integer
Dim returnValue As Integer

returnValue = instance.DrawBitmap_(lpPanBitmap, _
    fErase)
int DrawBitmap_(
    ref uint lpPanBitmap,
    int fErase
)
int DrawBitmap_(
    [InAttribute] unsigned int% lpPanBitmap, 
    [InAttribute] int fErase
)
abstract DrawBitmap_ : 
        lpPanBitmap:uint32 byref * 
        fErase:int -> int 
function DrawBitmap_(
    lpPanBitmap : uint, 
    fErase : int
) : int

Parameters

  • lpPanBitmap
    Type: System.UInt32%
    [in] Pointer to a PANBITMAP structure. For more information, see Remarks.
  • fErase
    Type: System.Int32
    [in] Boolean. If true, erase the bitmap. Otherwise, draw it.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsIntelliMouseHandler::DrawBitmap_(
   [in] DWORD* lpPanBitmap, 
   [in] BOOL fErase
);

PANBITMAP Structure

[C++]

typedef struct tagPANBITMAP
{
   HWND hwnd;
   HDC hdcSrc;
   HBITMAP hbmSave;
   HBITMAP hbmLoaded;
   HBITMAP hbmMask;
   HBITMAP hbmColor;
   int x;
   int y;
   int cx;
   int cy;
} PANBITMAP, FAR *LPPANBITMAP;

.NET Framework Security

See Also

Reference

IVsIntelliMouseHandler Interface

IVsIntelliMouseHandler Members

Microsoft.VisualStudio.Shell.Interop Namespace