Last change
on this file since 615 was 615, checked in by イグトランス (egtra), 16 years ago |
サブクラス化機構(Control.Attach)の整備
|
File size:
478 bytes
|
Rev | Line | |
---|
[551] | 1 | Public
|
---|
[559] | 2 | Static Sub AddThreadExit(h As Handler)
|
---|
[551] | 3 | If IsNothing(threadExit) Then
|
---|
| 4 | threadExit = h
|
---|
| 5 | Else
|
---|
| 6 | threadExit += h
|
---|
| 7 | End If
|
---|
| 8 | End Sub
|
---|
[559] | 9 | Static Sub RemoveThreadExit(h As Handler)
|
---|
[551] | 10 | If Not IsNothing(threadExit) Then
|
---|
| 11 | threadExit -= h
|
---|
| 12 | End If
|
---|
| 13 | End Sub
|
---|
| 14 | Protected
|
---|
[615] | 15 | Static Function OnThreadExit(e As Args) As Boolean
|
---|
[551] | 16 | If Not IsNothing(threadExit) Then
|
---|
| 17 | threadExit(This, e)
|
---|
[615] | 18 | Return True
|
---|
[551] | 19 | End If
|
---|
[615] | 20 | End Function
|
---|
[551] | 21 | Private
|
---|
[559] | 22 | Static threadExit As Handler
|
---|
[551] | 23 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.