2007-10-15 12:45:36 +02:00
|
|
|
;****************************************************
|
2007-11-19 18:44:47 +01:00
|
|
|
;*****************move of GUI component**************
|
2007-10-15 12:45:36 +02:00
|
|
|
;****************************************************
|
|
|
|
;IN
|
2007-11-19 18:44:47 +01:00
|
|
|
;MoveComponent(dword Parend,dword Control,dword newx,dword newy)
|
2007-10-15 12:45:36 +02:00
|
|
|
;newy
|
|
|
|
;newx
|
|
|
|
;Control
|
|
|
|
;Parend
|
|
|
|
;OUT
|
|
|
|
;not
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
2007-11-19 18:44:47 +01:00
|
|
|
move_component:
|
2007-10-15 12:45:36 +02:00
|
|
|
|
2008-01-31 13:50:35 +01:00
|
|
|
push ebx
|
|
|
|
push ecx
|
|
|
|
push edx
|
|
|
|
push ebp
|
|
|
|
|
|
|
|
mov ebx,[esp+16+4] ;Control
|
|
|
|
mov ecx,[esp+16+8] ;new x
|
|
|
|
mov edx,[esp+16+12] ;new y
|
2007-10-15 12:45:36 +02:00
|
|
|
|
|
|
|
mov [ebx+24],ecx
|
|
|
|
mov [ebx+28],edx
|
|
|
|
|
2008-01-31 13:50:35 +01:00
|
|
|
pop ebp
|
|
|
|
pop edx
|
|
|
|
pop ecx
|
|
|
|
pop ebx
|
|
|
|
|
2007-10-15 12:45:36 +02:00
|
|
|
ret 12
|