Files
BRC/wnd_draw.asm

66 lines
1.6 KiB
NASM

; wnd_draw — полная перерисовка окна (окно, кнопки, поля, области)
wnd_draw:
push eax ebx ecx edx esi edi
mov eax, 12
mov ebx, 1
int 0x40
mov eax, 0
mov ebx, (WIN_X shl 16) or WIN_W
mov ecx, (WIN_Y shl 16) or WIN_H
mov edx, 0x37000000 or CW_TITLE
mov esi, CW_BG
mov edi, szTitle
int 0x40
mov eax, 4
mov ebx, (EX shl 16) or (EY-14)
mov ecx, CT_LBL
mov edx, szLblReq
call txt_draw
call draw_edit
mov eax, 8
mov ebx, ((EX+EW+8) shl 16) or 60
mov ecx, (EY shl 16) or (EH+2)
mov edx, BTN_SEND
mov esi, CB_SEND
int 0x40
mov eax, 4
mov ebx, ((EX+EW+16) shl 16) or (EY+5)
mov ecx, CB_TXT
mov edx, szBtnSend
call txt_draw
mov eax, 8
mov ebx, ((EX+EW+8) shl 16) or 60
mov ecx, ((EY+28) shl 16) or (EH+2)
mov edx, BTN_CLR
mov esi, CB_CLR
int 0x40
mov eax, 4
mov ebx, ((EX+EW+16) shl 16) or (EY+33)
mov ecx, CB_TXT
mov edx, szBtnClr
call txt_draw
mov eax, 4
mov ebx, (OX shl 16) or (OY-14)
mov ecx, CT_LBL
mov edx, szLblResp
call txt_draw
call draw_out
call draw_status
mov eax, 12
mov ebx, 2
int 0x40
pop edi esi edx ecx ebx eax
ret