ClassNativeMethods
Definition
Namespace:Telerik.WinControls
Assembly:TelerikCommon.dll
Syntax:
public static class NativeMethods
Inheritance: objectNativeMethods
Fields
GC_PAN_WITH_SINGLE_FINGER_HORIZONTALLY
Declaration
public const uint GC_PAN_WITH_SINGLE_FINGER_HORIZONTALLY = 4
Field Value
GC_PAN_WITH_SINGLE_FINGER_VERTICALLY
Declaration
public const uint GC_PAN_WITH_SINGLE_FINGER_VERTICALLY = 2
Field Value
Properties
Methods
AnimateWindow(IntPtr, int, AnimateWindowFlags)
Declaration
public static extern bool AnimateWindow(IntPtr hwnd, int time, NativeMethods.AnimateWindowFlags flags)
Parameters
hwnd
time
flags
Returns
BitBlt(IntPtr, int, int, int, int, IntPtr, int, int, long)
Declaration
public static extern bool BitBlt(IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, long dwRop)
Parameters
hdcDest
nXDest
nYDest
nWidth
nHeight
hdcSrc
nXSrc
nYSrc
dwRop
Returns
ClientToScreen(HandleRef, POINT)
Declaration
public static extern int ClientToScreen(HandleRef hWnd, NativeMethods.POINT pt)
Parameters
hWnd
pt
Returns
CreateBrushIndirect(LOGBRUSH)
Declaration
public static IntPtr CreateBrushIndirect(NativeMethods.LOGBRUSH lb)
Parameters
lb
Returns
CreateFontIndirect(LOGFONT)
Declaration
public static extern IntPtr CreateFontIndirect(NativeMethods.LOGFONT lplf)
Parameters
lplf
Returns
CreateIconIndirect(ref IconInfo)
Declaration
public static extern IntPtr CreateIconIndirect(ref NativeMethods.IconInfo icon)
Parameters
icon
Returns
DwmSetWindowAttribute(IntPtr, DWMWINDOWATTRIBUTE, ref DWM_WINDOW_CORNER_PREFERENCE, uint)
Declaration
public static extern long DwmSetWindowAttribute(IntPtr hwnd, NativeMethods.DWMWINDOWATTRIBUTE attribute, ref NativeMethods.DWM_WINDOW_CORNER_PREFERENCE pvAttribute, uint cbAttribute)
Parameters
hwnd
attribute
NativeMethods.DWMWINDOWATTRIBUTE
pvAttribute
NativeMethods.DWM_WINDOW_CORNER_PREFERENCE
cbAttribute
Returns
EnumFontFamilies(IntPtr, string, FontEnumDelegate, int)
Declaration
public static extern int EnumFontFamilies(IntPtr hdc, string lpszFamily, NativeMethods.FontEnumDelegate lpEnumFontFamProc, int lParam)
Parameters
hdc
lpszFamily
lpEnumFontFamProc
NativeMethods.FontEnumDelegate
lParam
Returns
EnumFontFamiliesEx(IntPtr, LOGFONT, FontEnumDelegate, int, int)
Declaration
public static extern int EnumFontFamiliesEx(IntPtr hdc, NativeMethods.LOGFONT lplf, NativeMethods.FontEnumDelegate lpEnumFontFamProc, int lParam, int dwFlags)
Parameters
hdc
lplf
lpEnumFontFamProc
NativeMethods.FontEnumDelegate
lParam
dwFlags
Returns
GetCurrentObject(IntPtr, GdiDcObject)
Declaration
public static extern IntPtr GetCurrentObject(IntPtr hdc, NativeMethods.GdiDcObject uObjectType)
Parameters
hdc
uObjectType
Returns
GetFontUnicodeRanges(IntPtr, GlyphSet)
Declaration
public static extern int GetFontUnicodeRanges(IntPtr hdc, NativeMethods.GlyphSet lpgs)
Parameters
hdc
lpgs
Returns
GetIconInfo(IntPtr, ref IconInfo)
Declaration
public static extern bool GetIconInfo(IntPtr hIcon, ref NativeMethods.IconInfo pIconInfo)
Parameters
hIcon
pIconInfo
Returns
GetMonitorDpi(Screen, DpiType)
Declaration
public static SizeF GetMonitorDpi(Screen screen, NativeMethods.DpiType dpiType)
Parameters
screen
dpiType
Returns
GetObject(HandleRef, LOGBRUSH)
Declaration
public static int GetObject(HandleRef hObject, NativeMethods.LOGBRUSH lb)
Parameters
hObject
lb
Returns
GetObject(HandleRef, LOGFONT)
Declaration
public static int GetObject(HandleRef hObject, NativeMethods.LOGFONT lp)
Parameters
hObject
lp
Returns
GetObject(HandleRef, LOGPEN)
Declaration
public static int GetObject(HandleRef hObject, NativeMethods.LOGPEN lp)
Parameters
hObject
lp
Returns
GetObject(HandleRef, int, BITMAP)
Declaration
public static extern int GetObject(HandleRef hObject, int nSize, NativeMethods.BITMAP bm)
Parameters
hObject
nSize
bm
Returns
GetObject(HandleRef, int, LOGBRUSH)
Declaration
public static extern int GetObject(HandleRef hObject, int nSize, NativeMethods.LOGBRUSH lb)
Parameters
hObject
nSize
lb
Returns
GetObject(HandleRef, int, LOGFONT)
Declaration
public static extern int GetObject(HandleRef hObject, int nSize, NativeMethods.LOGFONT lf)
Parameters
hObject
nSize
lf
Returns
GetObject(HandleRef, int, LOGPEN)
Declaration
public static extern int GetObject(HandleRef hObject, int nSize, NativeMethods.LOGPEN lp)
Parameters
hObject
nSize
lp
Returns
GetTextFace(IntPtr, int, StringBuilder)
Declaration
public static extern int GetTextFace(IntPtr hdc, int nCount, StringBuilder lpFaceName)
Parameters
hdc
nCount
lpFaceName
Returns
GetTextMetrics(IntPtr, IntPtr)
Declaration
public static NativeMethods.TextMetric GetTextMetrics(IntPtr hdc, IntPtr hFont)
Parameters
hdc
hFont
Returns
GetTextMetrics(IntPtr, out TextMetric)
Declaration
public static extern bool GetTextMetrics(IntPtr hdc, out NativeMethods.TextMetric tm)
Parameters
hdc
tm
Returns
GetThreadDpiAwarenessContext()
Declaration
public static extern IntPtr GetThreadDpiAwarenessContext()
Returns
GetUpdateRect(IntPtr, ref RECT, bool)
Declaration
public static extern bool GetUpdateRect(IntPtr hWnd, ref NativeMethods.RECT rect, bool bErase)
Parameters
hWnd
rect
bErase
Returns
GetWindow(IntPtr, GetWindow_Cmd)
Declaration
public static extern IntPtr GetWindow(IntPtr hWnd, NativeMethods.GetWindow_Cmd uCmd)
Parameters
hWnd
uCmd
Returns
GetWindowRect(HandleRef, ref RECT)
Declaration
public static extern bool GetWindowRect(HandleRef hWnd, ref NativeMethods.RECT rect)
Parameters
hWnd
rect
Returns
InitCommonControlsEx(INITCOMMONCONTROLSEX)
Declaration
public static extern bool InitCommonControlsEx(NativeMethods.INITCOMMONCONTROLSEX icc)
Parameters
icc
Returns
InvertRect(IntPtr, ref RECT)
Declaration
public static extern bool InvertRect(IntPtr hDC, ref NativeMethods.RECT lprc)
Parameters
hDC
lprc
Returns
SHGetFileInfo(string, uint, ref SHFILEINFO, uint, uint)
Declaration
public static extern IntPtr SHGetFileInfo(string pszPath, uint dwFileAttributes, ref NativeMethods.SHFILEINFO psfi, uint cbSizeFileInfo, uint uFlags)
Parameters
pszPath
dwFileAttributes
psfi
cbSizeFileInfo
uFlags
Returns
ToUnicodeEx(uint, uint, byte[], StringBuilder, int, uint, IntPtr)
Declaration
public static extern int ToUnicodeEx(uint wVirtKey, uint wScanCode, byte[] lpKeyState, StringBuilder pwszBuff, int cchBuff, uint wFlags, IntPtr dwhkl)
Parameters
wVirtKey
wScanCode
lpKeyState
byte[]
pwszBuff
cchBuff
wFlags
dwhkl
Returns
UpdateLayeredWindow(IntPtr, IntPtr, ref POINTSTRUCT, ref SIZESTRUCT, IntPtr, ref POINTSTRUCT, int, ref BLENDFUNCTION, int)
Declaration
public static extern int UpdateLayeredWindow(IntPtr hwnd, IntPtr hdcDst, ref NativeMethods.POINTSTRUCT pptDst, ref NativeMethods.SIZESTRUCT psize, IntPtr hdcSrc, ref NativeMethods.POINTSTRUCT pprSrc, int crKey, ref NativeMethods.BLENDFUNCTION pblend, int dwFlags)
Parameters
hwnd
hdcDst
pptDst
psize
hdcSrc
pprSrc
crKey
pblend
dwFlags
Returns
_TrackMouseEvent(TRACKMOUSEEVENT)
Declaration
public static extern bool _TrackMouseEvent(NativeMethods.TRACKMOUSEEVENT tme)
Parameters
tme
Returns
_WindowFromPoint(POINTSTRUCT)
Declaration
public static extern IntPtr _WindowFromPoint(NativeMethods.POINTSTRUCT pt)
Parameters
pt
Returns