'DrawEdge constants
Public Const BDR_RAISEDOUTER = &H1&
Public Const BDR_RAISEDINNER = &H4&
Public Const BF_LEFT = &H1&             ' Border flags
我用以下法实现了凸起,但不知有没有方法可以实现凹下,怎么实现?
Public Const BF_TOP = &H2&
Public Const BF_RIGHT = &H4&
Public Const BF_BOTTOM = &H8&
Public Const BF_RECT = BF_LEFT Or BF_TOP Or BF_RIGHT Or BF_BOTTOM
Public Const BF_SOFT = &H1000&          ' For softer buttonsPublic Declare Function DrawEdge Lib "user32" (ByVal hDC As Long, qrc As RECT, ByVal edge As Long, ByVal grfFlags As Long) As Boolean
Public Type RECT
    Left As Long
    Top As Long
    Right As Long
    Bottom As Long
End Type
    Dim edge As RECT ' Rectangle edge of control    edge.Left = 0  ' Set rect edges to outer
    edge.Top = 0   ' - most position in pixels
    edge.Bottom = UserControl.ScaleHeight
    edge.Right = UserControl.ScaleWidth
    DrawEdge hDC, edge, BDR_RAISEDOUTER, BF_RECT Or BF_SOFT ' Draw Edge...