C# Class Microsoft.Windows.Controls.Ribbon.NativeMethods

Exibir arquivo Open project: kasicass/kasicass

Public Methods

Method Description
GET_X_LPARAM ( IntPtr lParam ) : int
GET_Y_LPARAM ( IntPtr lParam ) : int
GetWindowLongPtr ( IntPtr hwnd, GWL nIndex ) : IntPtr
HIWORD ( int i ) : Int16
LOWORD ( int i ) : Int16
SetWindowLongPtr ( IntPtr hwnd, GWL nIndex, IntPtr dwNewLong ) : IntPtr

Private Methods

Method Description
AdjustWindowRectEx ( RECT &lpRect, WS dwStyle, [ bMenu, WS_EX dwExStyle ) : bool
CombineRgn ( IntPtr hrgnDest, IntPtr hrgnSrc1, IntPtr hrgnSrc2, int fnCombineMode ) : int
CreateRectRgn ( int nLeftRect, int nTopRect, int nRightRect, int nBottomRect ) : IntPtr
CreateRoundRectRgn ( int x1, int y1, int x2, int y2, int cx, int cy ) : IntPtr
DefWindowProc ( IntPtr hWnd, WM Msg, IntPtr wParam, IntPtr lParam ) : IntPtr
DwmDefWindowProc ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, IntPtr &plResult ) : bool
DwmExtendFrameIntoClientArea ( IntPtr hwnd, MARGINS &pMarInset ) : void
DwmIsCompositionEnabled ( [ pfEnabled ) : void
EnableMenuItem ( IntPtr hMenu, SC uIDEnableItem, MF uEnable ) : int
FromRect ( Rect rect ) : NativeMethods.RECT

Converts a rectangle from an Avalon Rect to a Win32 RECT

Rounds "double" values to the nearest "int"

GetCapture ( ) : IntPtr
GetDC ( HandleRef hWnd ) : IntPtr
GetDeviceCaps ( HandleRef hDC, int nIndex ) : int
GetDoubleClickTime ( ) : int
GetMonitorInfo ( HandleRef hmonitor, [ info ) : bool
GetSystemMenu ( IntPtr hWnd, [ bRevert ) : IntPtr
GetWindowLongPtr32 ( IntPtr hWnd, GWL nIndex ) : IntPtr
GetWindowLongPtr64 ( IntPtr hWnd, GWL nIndex ) : IntPtr
GetWindowRect ( IntPtr hWnd, RECT &lpRect ) : bool
IntGetDC ( HandleRef hWnd ) : IntPtr
IntReleaseDC ( HandleRef hWnd, HandleRef hDC ) : int
IsWindowVisible ( IntPtr hwnd ) : bool
MessageBeep ( int uType ) : int
ModifyHwndStyle ( IntPtr hwnd, NativeMethods removeStyle, NativeMethods addStyle ) : bool

This method is used to toggle style flags from an hwnd.

MonitorFromRect ( RECT &rect, int flags ) : IntPtr
PeekMessage ( Message &message, IntPtr handle, uint filterMin, uint filterMax, uint flags ) : bool
PostMessage ( IntPtr hWnd, WM Msg, IntPtr wParam, IntPtr lParam ) : bool
ReleaseDC ( HandleRef hWnd, HandleRef hDC ) : int
SetWindowLongPtr32 ( IntPtr hWnd, GWL nIndex, IntPtr dwNewLong ) : IntPtr
SetWindowLongPtr64 ( IntPtr hWnd, GWL nIndex, IntPtr dwNewLong ) : IntPtr
SetWindowPos ( IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, SWP uFlags ) : bool
SetWindowRgn ( IntPtr hWnd, IntPtr hRgn, [ bRedraw ) : int
ToRect ( NativeMethods rc ) : Rect

Converts a rectangle from a Win32 RECT to an Avalon Rect

TrackPopupMenuEx ( IntPtr hmenu, uint fuFlags, int x, int y, IntPtr hwnd, IntPtr lptpm ) : uint

Method Details

GET_X_LPARAM() public static method

public static GET_X_LPARAM ( IntPtr lParam ) : int
lParam System.IntPtr
return int

GET_Y_LPARAM() public static method

public static GET_Y_LPARAM ( IntPtr lParam ) : int
lParam System.IntPtr
return int

GetWindowLongPtr() public static method

public static GetWindowLongPtr ( IntPtr hwnd, GWL nIndex ) : IntPtr
hwnd System.IntPtr
nIndex GWL
return System.IntPtr

HIWORD() public static method

public static HIWORD ( int i ) : Int16
i int
return System.Int16

LOWORD() public static method

public static LOWORD ( int i ) : Int16
i int
return System.Int16

SetWindowLongPtr() public static method

public static SetWindowLongPtr ( IntPtr hwnd, GWL nIndex, IntPtr dwNewLong ) : IntPtr
hwnd System.IntPtr
nIndex GWL
dwNewLong System.IntPtr
return System.IntPtr