Changeset 223 for Include/Classes/System/Windows/Forms/Message.ab
- Timestamp:
- Apr 30, 2007, 1:56:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Windows/Forms/Message.ab
r77 r223 4 4 #define __SYSTEM_WINDOWS_FORMS_MESSAGE_AB__ 5 5 6 #require <windows.sbp> 7 6 8 Class Message 7 9 Public 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 17 11 Return hwnd 18 12 End Function … … 22 16 End Sub 23 17 24 /*Const*/Function Msg() As DWord18 Const Function Msg() As DWord 25 19 Return msg 26 20 End Function … … 30 24 End Sub 31 25 32 /*Const*/Function WParam() As WPARAM26 Const Function WParam() As WPARAM 33 27 Return wp 34 28 End Function … … 38 32 End Sub 39 33 40 /*Const*/Function LParam() As LPARAM34 Const Function LParam() As LPARAM 41 35 Return lp 42 36 End Function … … 46 40 End Sub 47 41 48 /*Const*/Function Result() As LRESULT42 Const Function Result() As LRESULT 49 43 Return lr 50 44 End Function … … 54 48 End Sub 55 49 56 /*Const*/ Function Equals(x As Message) As B OOL50 /*Const*/ Function Equals(x As Message) As Boolean 57 51 Return hwnd = x.hwnd And _ 58 52 msg = x.msg And _ … … 62 56 End Function 63 57 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 65 64 Return Equals(x) 66 65 End Function 67 66 68 /*Const*/Function Operator <>(x As Message) As BOOL67 Const Function Operator <>(x As Message) As BOOL 69 68 Return Not Equals(x) 70 69 End Function
Note:
See TracChangeset
for help on using the changeset viewer.