IVsIntelliMouseHandler::LoadBitmap_ Method (IntPtr, UInt32, UInt32, POINT, UInt32)
Visual Studio 2015
Load the bitmap to display for panning with the Intellisense mouse. Once loaded, you then draw the bitmap with DrawBitmap_.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int LoadBitmap_( IntPtr hwnd, unsigned int idbmp, unsigned int idcur, POINT ptOrg, [InAttribute] unsigned int% lpPanBitmap )
Parameters
- hwnd
-
Type:
System::IntPtr
[in] The HWND of the active window.
- idbmp
-
Type:
System::UInt32
[in] The resource ID of the bitmap.
- idcur
-
Type:
System::UInt32
[in] The resource ID of the cursor.
- ptOrg
-
Type:
Microsoft.VisualStudio.OLE.Interop::POINT
[in] A POINT structure indicating the center point of the bitmap to display.
- lpPanBitmap
-
Type:
System::UInt32
[in] Pointer to a PANBITMAP structure. For more information, see Remarks.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsIntelliMouseHandler::LoadBitmap_( [in] HWND hwnd, [in] UINT idbmp, [in] UINT idcur, [in] POINT ptOrg, [in] DWORD* lpPanBitmap );
[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;
Show: