Re: recvfrom
- From: Betov <betov@xxxxxxx>
- Date: 09 Nov 2006 16:22:04 GMT
"¬a\\/b" <al@xxx> écrivait news:9cj6l2tjva543li9t2f4cdj9h2jdi86aeq@
4ax.com:
14lines 4 labels
vs
InitBlinkCursor:
User32.SetTimer( D*hwnd, 1, D*CaretTime, BlinkProc)
ret
BlinkProc:
B*BlockInside==FALSE #.1;
B*ShowCaret ==FALSE!#.2;
.1: B*ShowCaret^=TRUE;
D[CaretRectangle+8]!=0!#.2
B*CaretOnlyRedraw=TRUE; AskForRedraw();
.2:
ret 16
12lines 2 labels
:))
InitBlinkCursor:
call 'User32.SetTimer' D$hwnd, 1, D$CaretTime, BlinkProc
ret
BlinkProc:
.If_Or B$BlockInside = &FALSE, B$ShowCaret = &FALSE
xor B$ShowCaret &TRUE
If D$CaretRectangle+8 <> 0
mov B$CaretOnlyRedraw &TRUE | call AskForRedraw
End_If
.End_If
ret 16
12 Lines, 0 Labels. Or even "better":
InitBlinkCursor: call 'User32.SetTimer' D$hwnd, 1, D$CaretTime, BlinkProc
| ret | BlinkProc: | .If_Or B$BlockInside = &FALSE, B$ShowCaret = &FALSE
| xor B$ShowCaret &TRUE | If D$CaretRectangle+8 <> 0 | mov B
$CaretOnlyRedraw &TRUE | call AskForRedraw | End_If | .End_If |ret 16
1 Line, 0 Label.
:))
Well, seriously, did you got the confimation that it is
dis-recommanded to set the Destination Handle to &NULL?
Betov.
< http://rosasm.org >
.
- Follow-Ups:
- Re: recvfrom
- From: ¬a\\/b
- Re: recvfrom
- References:
- recvfrom
- From: ¬a\\/b
- Re: recvfrom
- From: Betov
- Re: recvfrom
- From: ¬a\\/b
- recvfrom
- Prev by Date: Re: Linux / Windows GUI application with assembly
- Next by Date: Re: RosAsm - exports issue with some DLLs
- Previous by thread: Re: recvfrom
- Next by thread: Re: recvfrom
- Index(es):
Relevant Pages
|
|