Ignore:
Timestamp:
Sep 29, 2008, 1:02:27 AM (16 years ago)
Author:
イグトランス (egtra)
Message:

Button.OnClickの仕組みを汎用的(WM_COMMAND全般)に。WndProcなどをProtectedへ。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/ActiveBasic/Windows/UI/WindowHandle.sbp

    r615 r637  
    308308    End Function
    309309*/
    310     Function Move(x As Long, y As Long, width As Long, height As Long, repaint As Boolean) As Boolean
     310    Function Move(x As Long, y As Long, width As Long, height As Long, repaint = True As Boolean) As Boolean
    311311        Return MoveWindow(hwnd, x, y, width, height, repaint) As Boolean
    312312    End Function
    313313
    314     Function Move(x As Long, y As Long, width As Long, height As Long) As Boolean
    315         Return MoveWindow(hwnd, x, y, width, height, TRUE) As Boolean
    316     End Function
    317 
    318     Function Move(ByRef rc As RECT, repaint As Boolean) As Boolean
     314    Function Move(ByRef rc As RECT, repaint = True As Boolean) As Boolean
    319315        With rc
    320316            Return MoveWindow(hwnd, .left, .top, .right - .left, .bottom - .top, repaint) As Boolean
     
    322318    End Function
    323319
    324     Function Move(ByRef rc As RECT) As Boolean
    325         With rc
    326             Return MoveWindow(hwnd, .left, .top, .right - .left, .bottom - .top, TRUE) As Boolean
    327         End With
    328     End Function
    329320/*
    330321    Function OpenClipboard() As Boolean
     
    586577
    587578    Const Function Maximized() As Boolean
    588         Return IsIconic() As Boolean
     579        Return IsZoomed(hwnd) As Boolean
    589580    End Function
    590581
     
    668659        sb.Length = size
    669660        Dim length = GetWindowText(hwnd, StrPtr(sb), size)
     661        sb.Length(length)
    670662        Text = sb.ToString
    671663    End Function
Note: See TracChangeset for help on using the changeset viewer.