419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
|
mov eax, [.rect.right]
mov ecx, [.rect.bottom]
sub eax, [.rect.left]
sub ecx, [.rect.top]
mov [.rect.right], eax
mov [.rect.bottom], ecx
lea ebx, [.workrect]
invoke SystemParametersInfoA, SPI_GETWORKAREA,0,ebx,0
mov eax, [.workrect.right]
sub eax, [.rect.right]
mov ecx, [.caret.x0]
cmp eax, ecx
jle @f
mov eax, ecx
@@:
mov edx, [.workrect.bottom]
sub edx, [.rect.bottom]
mov ecx, [.caret.y1]
add ecx, 1
cmp edx, ecx
jg @f
mov ecx, [.caret.y0]
sub ecx, [.rect.bottom]
sub ecx, 2
@@:
invoke SetWindowPos, [hCCList], NULL, eax, ecx, 0, 0, SWP_NOSIZE or SWP_NOZORDER or SWP_NOACTIVATE or SWP_NOCOPYBITS
lea ebx, [.word]
|
>
>
|
|
|
>
|
<
|
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
|
mov eax, [.rect.right]
mov ecx, [.rect.bottom]
sub eax, [.rect.left]
sub ecx, [.rect.top]
mov [.rect.right], eax
mov [.rect.bottom], ecx
invoke MonitorFromWindow, [.aedit], 2
mov [.info.cbSize], sizeof.MONITORINFO
lea ecx, [.info]
invoke GetMonitorInfoA, eax, ecx
mov eax, [.info.rcWork.right]
sub eax, [.rect.right]
mov ecx, [.caret.x0]
cmp eax, ecx
jle @f
mov eax, ecx
@@:
mov edx, [.info.rcWork.bottom]
sub edx, [.rect.bottom]
mov ecx, [.caret.y1]
add ecx, 1
cmp edx, ecx
jg @f
mov ecx, [.caret.y0]
sub ecx, [.rect.bottom]
sub ecx, 2
@@:
invoke SetWindowPos, [hCCList], NULL, eax, ecx, 0, 0, SWP_NOSIZE or SWP_NOZORDER or SWP_NOACTIVATE or SWP_NOCOPYBITS
lea ebx, [.word]
|