Rev 2165 | Rev 3014 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2165 | Rev 2173 | ||
---|---|---|---|
Line 356... | Line 356... | ||
356 | mov ebx,(30 shl 16)+20 |
356 | mov ebx,(30 shl 16)+20 |
357 | mov ecx,(5 shl 16)+20 |
357 | mov ecx,(5 shl 16)+20 |
358 | mov edx,4 |
358 | mov edx,4 |
359 | int 0x40 |
359 | int 0x40 |
Line -... | Line 360... | ||
- | 360 | ||
- | 361 | cmp byte[can_save],0 |
|
360 | 362 | je @f |
|
361 | ;mov ebx,(55 shl 16)+20 |
363 | mov ebx,(55 shl 16)+20 |
362 | ;mov ecx,(5 shl 16)+20 |
364 | mov ecx,(5 shl 16)+20 |
363 | ;mov edx,5 |
365 | mov edx,5 |
- | 366 | int 0x40 |
|
Line 364... | Line 367... | ||
364 | ;int 0x40 |
367 | @@: |
365 | 368 | ||
366 | mov ebx,(85 shl 16)+20 |
369 | mov ebx,(85 shl 16)+20 |
367 | mov ecx,(5 shl 16)+20 |
370 | mov ecx,(5 shl 16)+20 |
Line 376... | Line 379... | ||
376 | 379 | ||
377 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
380 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
378 | mov edx,(32 shl 16)+7 ;open |
381 | mov edx,(32 shl 16)+7 ;open |
Line -... | Line 382... | ||
- | 382 | int 0x40 |
|
- | 383 | ||
379 | int 0x40 |
384 | cmp byte[can_save],0 |
380 | 385 | je @f |
|
381 | ;add ebx,IMAGE_TOOLBAR_ICON_SIZE |
386 | add ebx,IMAGE_TOOLBAR_ICON_SIZE |
- | 387 | mov edx,(57 shl 16)+7 ;save |
|
Line 382... | Line 388... | ||
382 | ;mov edx,(57 shl 16)+7 ;save |
388 | int 0x40 |
383 | ;int 0x40 |
389 | @@: |
Line 384... | Line 390... | ||
384 | 390 | ||
Line 431... | Line 437... | ||
431 | mcall -1 |
437 | mcall -1 |
Line 432... | Line 438... | ||
432 | 438 | ||
433 | 439 | ||
- | 440 | align 4 |
|
434 | align 4 |
441 | but_new_file: |
435 | but_new_file: |
442 | mov byte[can_save],0 |
436 | stdcall [tl_info_clear], tree1 ;®ç¨á⪠ᯨ᪠®¡ê¥ªâ®¢ |
443 | stdcall [tl_info_clear], tree1 ;®ç¨á⪠ᯨ᪠®¡ê¥ªâ®¢ |
437 | stdcall [buf2d_clear], buf_0, [buf_0.color] ;ç¨á⨬ ¡ãä¥à |
444 | stdcall [buf2d_clear], buf_0, [buf_0.color] ;ç¨á⨬ ¡ãä¥à |
438 | ;;;call draw_window |
445 | ;;;call draw_window |
Line 465... | Line 472... | ||
465 | 472 | ||
466 | ;add ebx,[open_file_lif] |
473 | ;add ebx,[open_file_lif] |
467 | ;mov byte[ebx],0 ; á«ãç © ¥á«¨ à ¥¥ ¡ë« ®âªàëâ ä ©« ¡®«ì襣® à §¬¥à ç¨á⨬ ª®¥æ ¡ãä¥à á ä ©«®¬ |
474 | ;mov byte[ebx],0 ; á«ãç © ¥á«¨ à ¥¥ ¡ë« ®âªàëâ ä ©« ¡®«ì襣® à §¬¥à ç¨á⨬ ª®¥æ ¡ãä¥à á ä ©«®¬ |
Line -... | Line 475... | ||
- | 475 | ;mcall 71,1,openfile_path |
|
468 | ;mcall 71,1,openfile_path |
476 | |
Line 469... | Line 477... | ||
469 | 477 | mov byte[can_save],0 |
|
470 | stdcall [tl_info_clear], tree1 ;®ç¨á⪠ᯨ᪠®¡ê¥ªâ®¢ |
478 | stdcall [tl_info_clear], tree1 ;®ç¨á⪠ᯨ᪠®¡ê¥ªâ®¢ |
471 | 479 | ||
Line 811... | Line 819... | ||
811 | ret |
819 | ret |
812 | endp |
820 | endp |
Line 813... | Line 821... | ||
813 | 821 | ||
814 | align 4 |
822 | align 4 |
815 | but_save_file: |
823 | but_save_file: |
- | 824 | pushad |
|
- | 825 | copy_path open_dialog_name,communication_area_default_path,file_name,0 |
|
- | 826 | mov [OpenDialog_data.type],1 |
|
- | 827 | stdcall [OpenDialog_Start],OpenDialog_data |
|
- | 828 | cmp [OpenDialog_data.status],2 |
|
- | 829 | je .end_save_file |
|
- | 830 | ;ª®¤ ¯à¨ 㤠箬 ®âªàë⨨ ¤¨ «®£ |
|
- | 831 | ||
- | 832 | mov eax,70 ;70-ï äãªæ¨ï à ¡®â á ä ©« ¬¨ |
|
- | 833 | mov [run_file_70.Function], 2 |
|
- | 834 | mov [run_file_70.Position], 0 |
|
- | 835 | mov [run_file_70.Flags], 0 |
|
- | 836 | mov ebx, dword[open_file_lif] |
|
- | 837 | mov [run_file_70.Buffer], ebx |
|
816 | if debug |
838 | mov ebx,dword[ebx+2] |
- | 839 | mov dword[run_file_70.Count], ebx ;à §¬¥à ä ©« |
|
- | 840 | mov byte[run_file_70+20], 0 |
|
- | 841 | mov dword[run_file_70.FileName], openfile_path |
|
- | 842 | mov ebx,run_file_70 |
|
- | 843 | int 0x40 ;§ £à㦠¥¬ ä ©« ¨§®¡à ¦¥¨ï |
|
- | 844 | cmp ebx,0xffffffff |
|
- | 845 | je .end_save_file |
|
- | 846 | ||
817 | stdcall buf_draw_hex_table,dword[open_file_lif],3 ;¤®¡ ¢«¥¨¥ 16-à¨çëå ¤ ëå |
847 | .end_save_file: |
818 | end if |
848 | popad |
Line 819... | Line 849... | ||
819 | ret |
849 | ret |
820 | 850 | ||
821 | align 4 |
851 | align 4 |
Line 1167... | Line 1197... | ||
1167 | procinfo process_information |
1197 | procinfo process_information |
Line 1168... | Line 1198... | ||
1168 | 1198 | ||
1169 | align 4 |
1199 | align 4 |
1170 | buf_0: dd 0 ;㪠§ â¥«ì ¡ãä¥à ¨§®¡à ¦¥¨ï |
1200 | buf_0: dd 0 ;㪠§ â¥«ì ¡ãä¥à ¨§®¡à ¦¥¨ï |
1171 | .l: dw 205 ;+4 left |
1201 | .l: dw 205 ;+4 left |
1172 | dw 35 ;+6 top |
1202 | .t: dw 35 ;+6 top |
1173 | .w: dd 340 ;+8 w |
1203 | .w: dd 340 ;+8 w |
1174 | .h: dd 250 ;+12 h |
1204 | .h: dd 250 ;+12 h |
1175 | .color: dd 0xffffd0 ;+16 color |
1205 | .color: dd 0xffffd0 ;+16 color |