C# 클래스 SIL.Utils.PaintingHelper

Contains misc. static methods for various customized painting.
파일 보기 프로젝트 열기: sillsdev/FieldWorks

공개 프로퍼티들

프로퍼티 타입 설명
WM_NCPAINT int

공개 메소드들

메소드 설명
CanPaintVisualStyle ( System.Windows.Forms.VisualStyles.VisualStyleElement element ) : bool

Returns a value indicating whether or not visual style rendering is supported in the application and if the specified element can be rendered.

DrawCustomBorder ( Control ctrl ) : void

Draws around the specified control, a fixed single border the color of text boxes in a themed environment. If themes are not enabled, the border is black.

DrawCustomBorder ( Control ctrl, Color clrBorder ) : void

Draws around the specified control, a fixed single border of the specified color.

DrawHotBackground ( Graphics g, Rectangle rc, PaintState state ) : void

Draws a background in the specified rectangle that looks like a toolbar button when the mouse is over it, with consideration for whether the look should be like the mouse is down or not. Note, when a PaintState of normal is specified, this method does nothing. Normal background painting is up to the caller.

비공개 메소드들

메소드 설명
GetParent ( IntPtr hWnd ) : IntPtr
GetWindowDC ( IntPtr hwnd ) : IntPtr
PaintDropDownContainer ( IntPtr hwnd, bool returnGraphics ) : Graphics
ReleaseDC ( IntPtr hwnd, IntPtr hdc ) : int

메소드 상세

CanPaintVisualStyle() 공개 정적인 메소드

Returns a value indicating whether or not visual style rendering is supported in the application and if the specified element can be rendered.
public static CanPaintVisualStyle ( System.Windows.Forms.VisualStyles.VisualStyleElement element ) : bool
element System.Windows.Forms.VisualStyles.VisualStyleElement
리턴 bool

DrawCustomBorder() 공개 정적인 메소드

Draws around the specified control, a fixed single border the color of text boxes in a themed environment. If themes are not enabled, the border is black.
public static DrawCustomBorder ( Control ctrl ) : void
ctrl System.Windows.Forms.Control
리턴 void

DrawCustomBorder() 공개 정적인 메소드

Draws around the specified control, a fixed single border of the specified color.
public static DrawCustomBorder ( Control ctrl, Color clrBorder ) : void
ctrl System.Windows.Forms.Control
clrBorder Color
리턴 void

DrawHotBackground() 공개 정적인 메소드

Draws a background in the specified rectangle that looks like a toolbar button when the mouse is over it, with consideration for whether the look should be like the mouse is down or not. Note, when a PaintState of normal is specified, this method does nothing. Normal background painting is up to the caller.
public static DrawHotBackground ( Graphics g, Rectangle rc, PaintState state ) : void
g System.Drawing.Graphics
rc System.Drawing.Rectangle
state PaintState
리턴 void

프로퍼티 상세

WM_NCPAINT 공개적으로 정적으로 프로퍼티

public static int WM_NCPAINT
리턴 int