Ignore:
Timestamp:
Apr 30, 2007, 1:56:57 PM (17 years ago)
Author:
イグトランス (egtra)
Message:

Controlがコンパイルできるように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/Windows/Forms/Message.ab

    r77 r223  
    44#define __SYSTEM_WINDOWS_FORMS_MESSAGE_AB__
    55
     6#require <windows.sbp>
     7
    68Class Message
    79Public
    8     Sub Operator =(ByRef x As Message)
    9         hwnd = x.hwnd
    10         msg = x.msg
    11         wp = x.wp
    12         lp = x.lp
    13         lr = x.lr
    14     End Sub
    15 
    16     /*Const*/ Function HWnd() As HWND
     10    Const Function HWnd() As HWND
    1711        Return hwnd
    1812    End Function
     
    2216    End Sub
    2317
    24     /*Const*/ Function Msg() As DWord
     18    Const Function Msg() As DWord
    2519        Return msg
    2620    End Function
     
    3024    End Sub
    3125
    32     /*Const*/ Function WParam() As WPARAM
     26    Const Function WParam() As WPARAM
    3327        Return wp
    3428    End Function
     
    3832    End Sub
    3933
    40     /*Const*/ Function LParam() As LPARAM
     34    Const Function LParam() As LPARAM
    4135        Return lp
    4236    End Function
     
    4640    End Sub
    4741
    48     /*Const*/ Function Result() As LRESULT
     42    Const Function Result() As LRESULT
    4943        Return lr
    5044    End Function
     
    5448    End Sub
    5549
    56     /*Const*/ Function Equals(x As Message) As BOOL
     50    /*Const*/ Function Equals(x As Message) As Boolean
    5751        Return hwnd = x.hwnd And _
    5852            msg = x.msg And _
     
    6256    End Function
    6357
    64     /*Const*/ Function Operator ==(x As Message) As BOOL
     58    Override Function GetHashCode() As Long
     59        Return _System_HashFromPtr(hwnd) Xor (Not msg) Xor _System_HashFromPtr(wp As VoidPtr) Xor _
     60            (Not _System_HashFromPtr(lp As VoidPtr)) Xor _System_HashFromPtr(lr As VoidPtr)
     61    End Function
     62
     63    Const Function Operator ==(x As Message) As BOOL
    6564        Return Equals(x)
    6665    End Function
    6766
    68     /*Const*/ Function Operator <>(x As Message) As BOOL
     67    Const Function Operator <>(x As Message) As BOOL
    6968        Return Not Equals(x)
    7069    End Function
Note: See TracChangeset for help on using the changeset viewer.