Fresh IDE . Artifact [712a3a4eba]
Not logged in

This repository is a mirror!

The original is located on: https://fresh.flatassembler.net/fossil/repo/fresh
If you want to follow the project, please update your remote-url

Artifact 712a3a4eba1fcc648c51b28ba6197080326d60f1:




; Returns the caret position of the editor [.hEditor]
;  EAX - X position from 1
;  EDX - Y position (line number) from 1
proc GetEditorCaretPos, .hEditor
.aepos AEPOS
begin
        push    ecx
        lea     eax, [.aepos]
        invoke  SendMessageW, [.hEditor], AEM_GETPOS, eax, 0
        mov     eax, [.aepos.caretPosition]
        mov     edx, [.aepos.caretLine]
        pop     ecx
        return
endp