'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...
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...
解决方案 »
- 有关溢出问题
- 取得WEBbrowser 中的HTML代码 有关UNICODE的问题
- 各位大虾一般用怎么办法下载文件?如果要点断续传怎么实现?
- 关于Tcp/Ip接收数据的问题:
- #=#=#=>> [600]分求IT公司好名字 <<=#=#=#
- 求助:当程序产生错误时,自动将错误信息写入到程序目录下的一个文本文件中,该如何实现?
- langzhi:第二个问题:怎样通过程序得到用户上网浏览了哪些网址?(假定用户用的是多个浏览器)
- 100分的问题,怎么样使ado和datagrid连接。谢谢了
- 如何让一个接口返回Recordset对象?
- vb设置文件夹选项不显示隐藏文件
- 怎样打开我的电脑及我的文档,回收站
- 求URLOpenStream,URLOpenPullStream,URLOpenBlockingStream的用法
Const BDR_SUNKENINNER = &H8用这2个换掉BDR_RAISEDOUTER就可以了。
一个image在4根线中间当鼠标移上image来的时候4跟线就一起出现 反之隐藏