windows.asm

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

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

;-------------------------------------------------------------------------
;
;Initialise Window's stuff so base handler gets a lookin.
;
WinInitialise	proc	near
	call	CalculateSplits
	ret
WinInitialise	endp


;-------------------------------------------------------------------------
;
;Provides region clearing for the background when windows are closed.
;
BaseHandler	proc	near
	cmp	eax,WinMess_Draw
	jnz	@@9
	push	32767
	push	32767
	push	0
	push	0
	xor	eax,eax
	test	VideoModeFlags,8
	jz	@@0
	mov	ax,0720h
@@0:	push	eax
	push	0
	push	esi
	call	WinFillRectangle
	add	esp,4*7
@@9:	ret
BaseHandler	endp


	sdata

;-------------------------------------------------------------------------
;
;Some variables common to several routines.
;
BaseWindow	WIN <0,0,0,32767,32767,BaseHandler>
;
WinWindowList	label dword
	dd BaseWindow, MaxWinWindows dup (-1)
;
WindowRegionFlag dd 0	;Forced region clipping?
WindowRegionX	dd ?
WindowRegionY	dd ?
WindowRegionW	dd ?
WindowRegionD	dd ?
;
FontBuffer	label byte
	db 1024 dup (?)


	efile
	end

⌨️ 快捷键说明

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