Rev 1067 | Rev 1466 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1067 | Rev 1391 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 1067 $ |
8 | $Revision: 1391 $ |
9 | 9 | ||
10 | uglobal |
10 | uglobal |
11 | align 4 |
11 | align 4 |
Line 366... | Line 366... | ||
366 | jnz .ret ;subfunction==1 ? |
366 | jnz .ret ;subfunction==1 ? |
367 | ;pushfd ;à íàôèãà? |
367 | ;pushfd ;à íàôèãà? |
368 | cli |
368 | cli |
369 | sub ecx,2 |
369 | sub ecx,2 |
370 | je .sendkey |
370 | je .sendkey |
- | 371 | dec ecx |
|
371 | loop .retf |
372 | jnz .retf |
372 | .sendbtn: |
373 | .sendbtn: |
373 | cmp byte[BTN_COUNT],1 |
374 | cmp byte[BTN_COUNT],1 |
374 | jae .result ;overflow |
375 | jae .result ;overflow |
375 | inc byte[BTN_COUNT] |
376 | inc byte[BTN_COUNT] |
- | 377 | shl edx, 8 |
|
376 | mov [BTN_BUFF],edx |
378 | mov [BTN_BUFF],edx |
377 | jmp .result |
379 | jmp .result |
378 | .sendkey: |
380 | .sendkey: |
379 | movzx eax,byte[KEY_COUNT] |
381 | movzx eax,byte[KEY_COUNT] |
380 | cmp al,120 |
382 | cmp al,120 |
Line 465... | Line 467... | ||
465 | .Buttons: ; eax=2, retval Buttons=3 |
467 | .Buttons: ; eax=2, retval Buttons=3 |
466 | cmp byte[BTN_COUNT],0 |
468 | cmp byte[BTN_COUNT],0 |
467 | je .loop ; empty ??? |
469 | je .loop ; empty ??? |
468 | cmp edx,[TASK_COUNT] |
470 | cmp edx,[TASK_COUNT] |
469 | jne .loop ; not Top ??? |
471 | jne .loop ; not Top ??? |
- | 472 | mov edx, [BTN_BUFF] |
|
- | 473 | shr edx, 8 |
|
470 | cmp dword[BTN_BUFF],0xFFFF ;-ID for Minimize-Button of Form |
474 | cmp edx, 0xFFFF ;-ID for Minimize-Button of Form |
471 | jne .result |
475 | jne .result |
472 | mov [window_minimize],1 |
476 | mov [window_minimize],1 |
473 | dec byte[BTN_COUNT] |
477 | dec byte[BTN_COUNT] |
474 | jmp .loop |
478 | jmp .loop |
475 | .Keys: ; eax==1 |
479 | .Keys: ; eax==1 |