IVsIntelliMouseHandler.LoadBitmap_ 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
加载要显示的用于通过 Intellisense 鼠标平移的位图。 加载后,您可以通过绘制位图 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
参数
- hwnd
-
IntPtr
nativeint
中活动窗口的 HWND。
- idbmp
- UInt32
中位图的资源 ID。
- idcur
- UInt32
中游标的资源 ID。
- ptOrg
- POINT
中一个点结构,指示要显示的位图的中心点。
- lpPanBitmap
- UInt32
中指向 PANBITMAP 结构的指针。 有关详细信息,请参阅“备注”。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsIntelliMouseHandler::LoadBitmap_(
[in] HWND hwnd,
[in] UINT idbmp,
[in] UINT idcur,
[in] POINT ptOrg,
[in] DWORD* lpPanBitmap
);
PANBITMAP 结构
[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;