2006-12-29 15:50:24 +01:00
|
|
|
;----------------------------------------------------------
|
|
|
|
;-------------draw window of program-----------------------
|
|
|
|
;----------------------------------------------------------
|
|
|
|
drawwin:
|
|
|
|
|
|
|
|
mov eax,9
|
|
|
|
mov ebx,IPC_table
|
|
|
|
or ecx,-1
|
2007-05-10 15:48:35 +02:00
|
|
|
mcall
|
2006-12-29 15:50:24 +01:00
|
|
|
|
|
|
|
mov eax,[IPC_table+34]
|
|
|
|
mov ebx,[IPC_table+38]
|
|
|
|
mov ecx,[IPC_table+42]
|
|
|
|
mov edx,[IPC_table+46]
|
|
|
|
mov [Window_CordinatX],eax
|
|
|
|
mov [Window_CordinatY],ebx
|
|
|
|
mov [Window_SizeX],ecx
|
|
|
|
mov [Window_SizeY],edx
|
|
|
|
|
|
|
|
cmp [Window_SizeX],585
|
|
|
|
jae no_minimum_size_x
|
|
|
|
|
|
|
|
mov [Window_SizeX],585
|
|
|
|
mov ecx,[Window_SizeX]
|
|
|
|
|
|
|
|
no_minimum_size_x:
|
|
|
|
|
|
|
|
cmp [Window_SizeY],400
|
|
|
|
jae no_minimum_size_y
|
|
|
|
|
|
|
|
mov [Window_SizeY],400
|
|
|
|
mov edx,[Window_SizeY]
|
|
|
|
|
|
|
|
no_minimum_size_y:
|
|
|
|
|
|
|
|
mov [MaxWorkScreen_SizeX],ecx
|
|
|
|
mov [MaxWorkScreen_SizeY],edx
|
|
|
|
sub [MaxWorkScreen_SizeX],20+10+5+10
|
|
|
|
sub [MaxWorkScreen_SizeY],20+10+15+1+49+20+10
|
|
|
|
|
|
|
|
cmp [MaxWorkScreen_SizeX],0
|
|
|
|
jns no_znak1
|
|
|
|
|
|
|
|
mov [MaxWorkScreen_SizeX],ecx
|
|
|
|
|
|
|
|
no_znak1:
|
|
|
|
|
|
|
|
cmp [MaxWorkScreen_SizeY],0
|
|
|
|
jns no_znak2
|
|
|
|
|
|
|
|
mov [MaxWorkScreen_SizeY],edx
|
|
|
|
|
|
|
|
no_znak2:
|
|
|
|
|
|
|
|
mov eax,12
|
|
|
|
mov ebx,1
|
2007-05-10 15:48:35 +02:00
|
|
|
mcall
|
2006-12-29 15:50:24 +01:00
|
|
|
|
|
|
|
and eax,0
|
|
|
|
mov ebx,[Window_CordinatX]
|
|
|
|
mov ecx,[Window_CordinatY]
|
|
|
|
shl ebx,16
|
|
|
|
shl ecx,16
|
|
|
|
add ebx,[Window_SizeX]
|
|
|
|
add ecx,[Window_SizeY]
|
2010-10-01 15:44:06 +02:00
|
|
|
mov edx,0x43aabbcc
|
|
|
|
xor esi,esi ;0x805080d0
|
|
|
|
xor edi,edi ;0x005080d0
|
2007-05-10 15:48:35 +02:00
|
|
|
mcall
|
2006-12-29 15:50:24 +01:00
|
|
|
|
|
|
|
call draw_panel
|
|
|
|
call PrintMousePos
|
|
|
|
|
|
|
|
mov [counter],7
|
|
|
|
mov edi,panel_text
|
|
|
|
call print_panel_text
|
|
|
|
|
2008-12-13 14:08:00 +01:00
|
|
|
;>>>>>>Leency
|
|
|
|
;mov eax,10
|
|
|
|
;mov ebx,5
|
|
|
|
;mov ecx,0xffffff
|
|
|
|
;mov edx,name_of_program
|
|
|
|
;mov esi,34
|
|
|
|
;call print_text
|
|
|
|
|
|
|
|
mov eax,71
|
|
|
|
mov ebx,1
|
|
|
|
mov ecx,name_of_program
|
|
|
|
int 40h
|
|
|
|
;Leency<<<<<<<
|
2006-12-29 15:50:24 +01:00
|
|
|
|
|
|
|
mov eax,12
|
|
|
|
mov ebx,2
|
2007-05-10 15:48:35 +02:00
|
|
|
mcall
|
2006-12-29 15:50:24 +01:00
|
|
|
|
|
|
|
mov ecx,[k]
|
|
|
|
|
|
|
|
and [PosX],0
|
|
|
|
and [PosY],0
|
|
|
|
call MovePictureToWorkScreen
|
|
|
|
call draw_scrollers
|
|
|
|
call draw_icons
|
|
|
|
|
|
|
|
ret
|