idragsourcehelper.cs
来自「C#界面编程」· CS 代码 · 共 27 行
CS
27 行
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace ShellDll
{
[ComImport]
[GuidAttribute("DE5BF786-477A-11d2-839D-00C04FD918D0")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IDragSourceHelper
{
// Initializes the drag-image manager for a windowless control
[PreserveSig]
Int32 InitializeFromBitmap(
ref ShellAPI.SHDRAGIMAGE pshdi,
IntPtr pDataObject);
// Initializes the drag-image manager for a control with a window
[PreserveSig]
Int32 InitializeFromWindow(
IntPtr hwnd,
ref ShellAPI.POINT ppt,
IntPtr pDataObject);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?