C# Class ExcelDna.IntelliSense.Win32Helper

Exibir arquivo Open project: Excel-DNA/IntelliSense Class Usage Examples

Public Methods

Method Description
GetClassName ( IntPtr hWnd ) : string
GetClientCursorPos ( IntPtr hWnd ) : Point
GetExcelProcessId ( ) : uint
GetFocusedWindowHandle ( ) : IntPtr
GetPosFromChar ( IntPtr hWnd, int ch ) : int
GetRootAncestor ( IntPtr hWnd ) : IntPtr
GetText ( IntPtr hWnd ) : string
GetWindowBounds ( IntPtr hWnd ) : System.Windows.Rect
GetWindowTextRaw ( IntPtr hwnd ) : string
GetXllModuleHandle ( ) : IntPtr
GetXllName ( ) : string
HideWindow ( IntPtr hWnd ) : bool

Private Methods

Method Description
CreateRoundRectRgn ( int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nWidthEllipse, int nHeightEllipse ) : IntPtr
DeleteObject ( [ hObject ) : bool
GetAncestor ( IntPtr hwnd, GetAncestorFlags flags ) : IntPtr
GetClassNameW ( IntPtr hwnd, [ buf, int nMaxCount ) : int
GetCurrentProcessId ( ) : uint
GetCursorPos ( Point &lpPoint ) : bool
GetGUIThreadInfo ( uint idThread, GUITHREADINFO &lpgui ) : bool
GetModuleHandle ( string lpModuleName ) : IntPtr
GetWindowRect ( IntPtr hwnd, RECT &rect ) : bool
GetWindowText ( IntPtr hWnd, StringBuilder lpString, int nMaxCount ) : int
GetWindowTextLength ( IntPtr hWnd ) : int
GetWindowThreadProcessId ( IntPtr hWnd, uint &lpdwProcessId ) : uint
MoveWindow ( IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint ) : bool
ReleaseCapture ( ) : bool
ScreenToClient ( IntPtr hWnd, Point &lpPoint ) : bool
SendMessage ( IntPtr hWnd, WM Msg, IntPtr wParam, [ lParam ) : IntPtr
SendMessage ( IntPtr hWnd, UInt32 Msg, int wParam, int lParam ) : int
SetCapture ( IntPtr hWnd ) : IntPtr
SetParent ( IntPtr hWndChild, IntPtr hWndNewParent ) : IntPtr
ShowWindow ( IntPtr hWnd, int nCmdShow ) : bool

Method Details

GetClassName() public static method

public static GetClassName ( IntPtr hWnd ) : string
hWnd System.IntPtr
return string

GetClientCursorPos() public static method

public static GetClientCursorPos ( IntPtr hWnd ) : Point
hWnd System.IntPtr
return System.Drawing.Point

GetExcelProcessId() public static method

public static GetExcelProcessId ( ) : uint
return uint

GetFocusedWindowHandle() public static method

public static GetFocusedWindowHandle ( ) : IntPtr
return System.IntPtr

GetPosFromChar() public static method

public static GetPosFromChar ( IntPtr hWnd, int ch ) : int
hWnd System.IntPtr
ch int
return int

GetRootAncestor() public static method

public static GetRootAncestor ( IntPtr hWnd ) : IntPtr
hWnd System.IntPtr
return System.IntPtr

GetText() public static method

public static GetText ( IntPtr hWnd ) : string
hWnd System.IntPtr
return string

GetWindowBounds() public static method

public static GetWindowBounds ( IntPtr hWnd ) : System.Windows.Rect
hWnd System.IntPtr
return System.Windows.Rect

GetWindowTextRaw() public static method

public static GetWindowTextRaw ( IntPtr hwnd ) : string
hwnd System.IntPtr
return string

GetXllModuleHandle() public static method

public static GetXllModuleHandle ( ) : IntPtr
return System.IntPtr

GetXllName() public static method

public static GetXllName ( ) : string
return string

HideWindow() public static method

public static HideWindow ( IntPtr hWnd ) : bool
hWnd System.IntPtr
return bool