Visual Basic (Declaration) | |
---|---|
Public Overloads Function DrawFrame( _ ByVal hdc As IntPtr, _ ByVal destRect As Rectangle, _ ByVal frameStyle As SpecialEffectsFrameStyleFlags, _ ByVal frameWidth As Integer, _ ByVal frameColor As Color, _ ByVal innerWidth As Integer, _ ByVal innerColor1 As Color, _ ByVal innerColor2 As Color, _ ByVal outerWidth As Integer, _ ByVal outerColor1 As Color, _ ByVal outerColor2 As Color _ ) As Rectangle |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public Rectangle DrawFrame( IntPtr hdc, Rectangle destRect, SpecialEffectsFrameStyleFlags frameStyle, int frameWidth, Color frameColor, int innerWidth, Color innerColor1, Color innerColor2, int outerWidth, Color outerColor1, Color outerColor2 ) |
C++/CLI | |
---|---|
public: Rectangle DrawFrame( IntPtr hdc, Rectangle destRect, SpecialEffectsFrameStyleFlags frameStyle, int frameWidth, Color frameColor, int innerWidth, Color innerColor1, Color innerColor2, int outerWidth, Color outerColor1, Color outerColor2 ) |
Parameters
- hdc
- Handle to the target device context.
- destRect
- Rectangle to be used as the display destination rectangle.
- frameStyle
- Frame style.For valid values, refer to SpecialEffectsFrameStyleFlags.
- frameWidth
- Middle band width.
- frameColor
- Value that specifies the middle band color.
- innerWidth
- Inner band width.
- innerColor1
- Value that specifies the inner band shadow color.
- innerColor2
- Value that specifies the inner band highlight color.
- outerWidth
- Outer band width.
- outerColor1
- Value that specifies the outer band shadow color.
- outerColor2
- Value that specifies the outer band highlight color.
Return Value
The dimensions of the destination rectangle. The destination rectangle will be updated if the frameStyle is AdjustRectangle.This example shows the minimum requirements for using the DrawFrame method to draw a frame with a palette.
Visual Basic | Copy Code |
---|---|
Public Sub DrawFrame(ByVal g As Graphics, ByVal destRect As Rectangle) |
C# | Copy Code |
---|---|
public void DrawFrame(Graphics g, Rectangle destRect) |
For general information, refer to Implementing Special Effects .
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family