C# Class Geb.Utils.WinForm.ScrollBarSkin

改自 http://www.codeproject.com/Articles/37296/RCM-v-Theming-library-Customize-the-Appearance
Inheritance: System.Windows.Forms.NativeWindow, IDisposable
Show file Open project: xiaotie/GebCommon

Protected Properties

Property Type Description
_isFocus bool

Private Properties

Property Type Description
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

Public Methods

Method Description
Dispose ( ) : void
ScrollBarSkin ( IntPtr hWnd ) : System

Protected Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Dispose() public method

public Dispose ( ) : void
return void

DrawHorizontalScrollBar() protected abstract method

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
return void

DrawSizer() protected abstract method

protected abstract DrawSizer ( Graphics g, int sizerWidth, int sizerHeight ) : void
g System.Drawing.Graphics
sizerWidth int
sizerHeight int
return void

DrawVerticalScrollBar() protected abstract method

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
return void

ScrollBarSkin() public method

public ScrollBarSkin ( IntPtr hWnd ) : System
hWnd System.IntPtr
return System

WndProc() protected method

protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
return void

Property Details

_isFocus protected property

protected bool _isFocus
return bool