Compartir a través de


IVsIntelliMouseHandler.LoadBitmap_ Method

Definition

Load the bitmap to display for panning with the Intellisense mouse. Once loaded, you then draw the bitmap with DrawBitmap_(UInt32, Int32).

public:
 int LoadBitmap_(IntPtr hwnd, System::UInt32 idbmp, System::UInt32 idcur, Microsoft::VisualStudio::OLE::Interop::POINT ptOrg, System::UInt32 % lpPanBitmap);
public int LoadBitmap_ (IntPtr hwnd, uint idbmp, uint idcur, Microsoft.VisualStudio.OLE.Interop.POINT ptOrg, ref uint lpPanBitmap);
abstract member LoadBitmap_ : nativeint * uint32 * uint32 * Microsoft.VisualStudio.OLE.Interop.POINT * uint32 -> int
Public Function LoadBitmap_ (hwnd As IntPtr, idbmp As UInteger, idcur As UInteger, ptOrg As POINT, ByRef lpPanBitmap As UInteger) As Integer

Parameters

hwnd
IntPtr

nativeint

[in] The HWND of the active window.

idbmp
UInt32

[in] The resource ID of the bitmap.

idcur
UInt32

[in] The resource ID of the cursor.

ptOrg
POINT

[in] A POINT structure indicating the center point of the bitmap to display.

lpPanBitmap
UInt32

[in] Pointer to a PANBITMAP structure. For more information, see Remarks.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsIntelliMouseHandler::LoadBitmap_(  
   [in] HWND hwnd,   
   [in] UINT idbmp,   
   [in] UINT idcur,   
   [in] POINT ptOrg,   
   [in] DWORD* lpPanBitmap  
);  

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;  

Applies to