Mario » 08.12.2005 (Чт) 6:00
Option Explicit
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" _
(ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" _
(ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Const BS_FLAT = &H8000 ' плоская кнопка или нет
Private Const GWL_STYLE = (-16)
' Расположение текста на кнопке command1
Private Const BS_LEFT = &H100
Private Const BS_RIGHT = &H200
Private Const BS_CENTER = &H300
Private Const BS_TOP = &H400
Private Const BS_BOTTOM = &H800
Private Sub Form_Load()
Dim tmp As Long ' стиль кнопки
tmp = GetWindowLong(Command1.hWnd, GWL_STYLE)
tmp = tmp + BS_LEFT + BS_FLAT
Call SetWindowLong(Command1.hWnd, GWL_STYLE, tmp)
End Sub
Только границы остаются!!!!
Может можно и это подправить...?!
Кто пил один и втихомолку, тот век земной прожил без толку...