_whichw.asm

来自「开放源码的编译器open watcom 1.6.0版的源代码」· 汇编 代码 · 共 43 行

ASM
43
字号
	include ..\cwlib.inc
	scode

;-------------------------------------------------------------------------
;
;See which (if any) window co-ords fall inside and return relative values
;
;Calling:
;
;WinWhichWindow(ints1,ints2);
;
;On Entry:
;
;ints1	- pointer to 3 int's with button, xcoord and ycoord info.
;ints2	- pointer to 3 int's to fill in, button becomes window.
;
;On Exit:
;
;nothing.
;
;ALL registers preserved.
;
_WinWhichWindow proc syscall ints1:dword, ints2:dword
	public _WinWhichWindow
	pushm	eax,ecx,edx,esi
	mov	esi,ints1
	mov	ecx,[esi+4]
	mov	edx,[esi+8]
	call	WinWhichWindow
	mov	esi,ints2
	mov	[esi],eax
	mov	[esi+4],ecx
	mov	[esi+8],edx
	popm	eax,ecx,edx,esi
	ret
_WinWhichWindow endp


	efile
	end


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?