C# Класс NewTOAPIA.UI.User32WindowWrapper

Class: User32WindowWrapper This class is meant to wrap a User32.dll based window. It primarily makes it easy to access various attributes of an existing window. It does not provide access to creating the window in the first place.
Наследование: IPlatformWindow, IMoveable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CaptureMouse ( ) : void
Destroy ( ) : void
GetTopLevelWindow ( string className, string windowName ) : User32WindowWrapper
Hide ( ) : void
Invalidate ( ) : void

Invalidate the entire client area.

Invalidate ( RectangleI rect ) : void
MoveBy ( int dx, int dy ) : void

Move the window by a specied amount.

MoveTo ( int x, int y ) : void

Move the window to a specific location.

ReleaseMouse ( ) : void
ResizeBy ( int dw, int dh ) : void
ResizeTo ( int width, int height ) : void
Run ( ) : void

SetTitle ( string title ) : void
SetWindowAlpha ( byte alpha ) : bool
SetWindowRegion ( GDIRegion aRegion ) : void
Show ( ) : void
StartTimer ( uint millis ) : void
StopTimer ( ) : void
User32WindowWrapper ( IntPtr hWnd ) : System
Validate ( ) : void

Описание методов

CaptureMouse() публичный Метод

public CaptureMouse ( ) : void
Результат void

Destroy() публичный Метод

public Destroy ( ) : void
Результат void

GetTopLevelWindow() публичный статический Метод

public static GetTopLevelWindow ( string className, string windowName ) : User32WindowWrapper
className string
windowName string
Результат User32WindowWrapper

Hide() публичный Метод

public Hide ( ) : void
Результат void

Invalidate() публичный Метод

Invalidate the entire client area.
public Invalidate ( ) : void
Результат void

Invalidate() публичный Метод

public Invalidate ( RectangleI rect ) : void
rect RectangleI
Результат void

MoveBy() публичный Метод

Move the window by a specied amount.
public MoveBy ( int dx, int dy ) : void
dx int The distance to move in the x-axis.
dy int The number of pixels to move in the y-axis.
Результат void

MoveTo() публичный Метод

Move the window to a specific location.
public MoveTo ( int x, int y ) : void
x int The X coordinate of the window frame's upper left corner.
y int The Y coordinate of the window frame's upper left corner.
Результат void

ReleaseMouse() публичный Метод

public ReleaseMouse ( ) : void
Результат void

ResizeBy() публичный Метод

public ResizeBy ( int dw, int dh ) : void
dw int
dh int
Результат void

ResizeTo() публичный Метод

public ResizeTo ( int width, int height ) : void
width int
height int
Результат void

Run() публичный Метод

public Run ( ) : void
Результат void

SetTitle() публичный Метод

public SetTitle ( string title ) : void
title string
Результат void

SetWindowAlpha() публичный Метод

public SetWindowAlpha ( byte alpha ) : bool
alpha byte
Результат bool

SetWindowRegion() публичный Метод

public SetWindowRegion ( GDIRegion aRegion ) : void
aRegion GDIRegion
Результат void

Show() публичный Метод

public Show ( ) : void
Результат void

StartTimer() публичный Метод

public StartTimer ( uint millis ) : void
millis uint
Результат void

StopTimer() публичный Метод

public StopTimer ( ) : void
Результат void

User32WindowWrapper() публичный Метод

public User32WindowWrapper ( IntPtr hWnd ) : System
hWnd System.IntPtr
Результат System

Validate() публичный Метод

public Validate ( ) : void
Результат void