C# Класс Geb.Utils.WinForm.ScrollBarSkin

改自 http://www.codeproject.com/Articles/37296/RCM-v-Theming-library-Customize-the-Appearance
Наследование: System.Windows.Forms.NativeWindow, IDisposable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_isFocus bool

Private Properties

Свойство Тип Описание
BeginPaint System.IntPtr
BitBlt bool
CheckBarState void
CreateScrollBarMask void
CreateWindowEx System.IntPtr
DestroyWindow bool
DrawScrollBar void
EndPaint bool
EqualRect bool
GetCursorPos bool
GetDC System.IntPtr
GetKeyState short
GetParent System.IntPtr
GetScrollBarInfo int
GetScrollPos int
GetSystemMetrics int
GetWindowLong int
GetWindowRect bool
HasHorizontal bool
HasSizer bool
HasVertical bool
HitTest System.Boolean
InvalidateWindow void
IsLeftKeyPressed bool
IsMouseButtonsSwitched bool
OffsetRect int
PtInRect bool
RedrawWindow bool
ReleaseDC int
ResizeMask void
ScreenToClient int
ScrollbarMetrics void
SelectObject System.IntPtr
SendMessage int
SendMessage int
SetScrollPos int
SetWindowPos bool
ShowWindow bool
StretchBlt bool
ValidateRect bool

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

Метод Описание
Dispose ( ) : void
ScrollBarSkin ( IntPtr hWnd ) : System

Защищенные методы

Метод Описание
DrawHorizontalScrollBar ( Graphics g, int scrollBarWidth, int scrollBarHeight, int thumbTop, int thumbBottom, int arrowSize, bool isMouseOver, bool isClick ) : void
DrawSizer ( Graphics g, int sizerWidth, int sizerHeight ) : void
DrawVerticalScrollBar ( Graphics g, int scrollBarWidth, int scrollBarHeight, int thumbTop, int thumbBottom, int arrowSize, bool isMouseOver, bool isClick ) : void
WndProc ( Message &m ) : void

Приватные методы

Метод Описание
BeginPaint ( IntPtr hWnd, PAINTSTRUCT &ps ) : IntPtr
BitBlt ( IntPtr hdc, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, int dwRop ) : bool
CheckBarState ( ) : void
CreateScrollBarMask ( ) : void
CreateWindowEx ( int exstyle, string lpClassName, string lpWindowName, int dwStyle, int x, int y, int nWidth, int nHeight, IntPtr hwndParent, IntPtr Menu, IntPtr hInstance, IntPtr lpParam ) : IntPtr
DestroyWindow ( IntPtr hWnd ) : bool
DrawScrollBar ( ) : void
EndPaint ( IntPtr hWnd, PAINTSTRUCT &ps ) : bool
EqualRect ( [ lprc1, [ lprc2 ) : bool
GetCursorPos ( Point &lpPoint ) : bool
GetDC ( IntPtr handle ) : IntPtr
GetKeyState ( int nVirtKey ) : short
GetParent ( IntPtr hWnd ) : IntPtr
GetScrollBarInfo ( IntPtr hWnd, uint idObject, SCROLLBARINFO &psbi ) : int
GetScrollPos ( IntPtr hWnd, int nBar ) : int
GetSystemMetrics ( SYSTEM_METRICS smIndex ) : int
GetWindowLong ( IntPtr hwnd, int nIndex ) : int
GetWindowRect ( IntPtr hWnd, System.Windows.Forms.RECT &lpRect ) : bool
HasHorizontal ( ) : bool
HasSizer ( ) : bool
HasVertical ( ) : bool
HitTest ( Orientation orient ) : System.Boolean
InvalidateWindow ( bool messaged ) : void
IsLeftKeyPressed ( ) : bool
IsMouseButtonsSwitched ( ) : bool
OffsetRect ( System.Windows.Forms.RECT &lpRect, int x, int y ) : int
PtInRect ( [ lprc, Point pt ) : bool
RedrawWindow ( IntPtr hWnd, IntPtr lprcUpdate, IntPtr hrgnUpdate, uint flags ) : bool
ReleaseDC ( IntPtr handle, IntPtr hdc ) : int
ResizeMask ( ) : void
ScreenToClient ( IntPtr hwnd, Point &lpPoint ) : int
ScrollbarMetrics ( ) : void
SelectObject ( IntPtr hdc, IntPtr hObject ) : IntPtr
SendMessage ( IntPtr hWnd, int Msg, int wParam, SCROLLBARINFO &lParam ) : int
SendMessage ( IntPtr hWnd, int Msg, int wParam, int lParam ) : int
SetScrollPos ( IntPtr hWnd, int nBar, int nPos, bool bRedraw ) : int
SetWindowPos ( IntPtr hWnd, IntPtr hWndAfter, int x, int y, int cx, int cy, uint flags ) : bool
ShowWindow ( IntPtr hWnd, int nCmdShow ) : bool
StretchBlt ( IntPtr hDest, int X, int Y, int nWidth, int nHeight, IntPtr hdcSrc, int sX, int sY, int nWidthSrc, int nHeightSrc, int dwRop ) : bool
ValidateRect ( IntPtr hWnd, System.Windows.Forms.RECT &lpRect ) : bool

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

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

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

DrawHorizontalScrollBar() защищенный абстрактный Метод

protected abstract DrawHorizontalScrollBar ( Graphics g, int scrollBarWidth, int scrollBarHeight, int thumbTop, int thumbBottom, int arrowSize, bool isMouseOver, bool isClick ) : void
g System.Drawing.Graphics
scrollBarWidth int
scrollBarHeight int
thumbTop int
thumbBottom int
arrowSize int
isMouseOver bool
isClick bool
Результат void

DrawSizer() защищенный абстрактный Метод

protected abstract DrawSizer ( Graphics g, int sizerWidth, int sizerHeight ) : void
g System.Drawing.Graphics
sizerWidth int
sizerHeight int
Результат void

DrawVerticalScrollBar() защищенный абстрактный Метод

protected abstract DrawVerticalScrollBar ( Graphics g, int scrollBarWidth, int scrollBarHeight, int thumbTop, int thumbBottom, int arrowSize, bool isMouseOver, bool isClick ) : void
g System.Drawing.Graphics
scrollBarWidth int
scrollBarHeight int
thumbTop int
thumbBottom int
arrowSize int
isMouseOver bool
isClick bool
Результат void

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

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

WndProc() защищенный Метод

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
Результат void

Описание свойств

_isFocus защищенное свойство

protected bool _isFocus
Результат bool