source: Include/Classes/System/Windows/Forms/Message.ab@ 106

Last change on this file since 106 was 77, checked in by イグトランス (egtra), 18 years ago

Controlの追加とそれに伴う修正

File size: 1.6 KB
Line 
1' Classes/System/Windows/Forms/Message.ab
2
3#ifndef __SYSTEM_WINDOWS_FORMS_MESSAGE_AB__
4#define __SYSTEM_WINDOWS_FORMS_MESSAGE_AB__
5
6Class Message
7Public
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
17 Return hwnd
18 End Function
19
20 Sub HWnd(hw As HWND)
21 hwnd = hw
22 End Sub
23
24 /*Const*/ Function Msg() As DWord
25 Return msg
26 End Function
27
28 Sub Msg(m As DWord)
29 msg = m
30 End Sub
31
32 /*Const*/ Function WParam() As WPARAM
33 Return wp
34 End Function
35
36 Sub WParam(wParam As WPARAM)
37 wp = wParam
38 End Sub
39
40 /*Const*/ Function LParam() As LPARAM
41 Return lp
42 End Function
43
44 Sub LParam(lParam As LPARAM)
45 lp = lParam
46 End Sub
47
48 /*Const*/ Function Result() As LRESULT
49 Return lr
50 End Function
51
52 Sub Result(res As LRESULT)
53 lr = res
54 End Sub
55
56 /*Const*/ Function Equals(x As Message) As BOOL
57 Return hwnd = x.hwnd And _
58 msg = x.msg And _
59 wp = .wp And _
60 lp = .lp And _
61 lr = .lr
62 End Function
63
64 /*Const*/ Function Operator ==(x As Message) As BOOL
65 Return Equals(x)
66 End Function
67
68 /*Const*/ Function Operator <>(x As Message) As BOOL
69 Return Not Equals(x)
70 End Function
71
72 Static Function Create(hwnd As HWND, msg As DWord, wp As WPARAM, lp As LPARAM) As Message
73 Dim m As Message
74 With m
75 .hwnd = hwnd
76 .msg = msg
77 .wp = wp
78 .lp = lp
79 End With
80 Return m
81 End Function
82
83Private
84 hwnd As HWND
85 msg As DWord
86 wp As WPARAM
87 lp As LPARAM
88 lr As LRESULT
89End Class
90
91#endif '__SYSTEM_WINDOWS_FORMS_MESSAGE_AB__
Note: See TracBrowser for help on using the repository browser.