42,7 → 42,6 |
stdcall [ted_clear], tedit0,1 |
call draw_but_toolbar |
stdcall [ted_draw], tedit0 |
mov dword[openfile_path],0 |
ret |
|
align 4 |
92,32 → 91,12 |
;description: |
; äãªæ¨ï ®âªàëâ¨ï ä ©« ¡¥§ ®ª á®®¡é¥¨ï |
align 4 |
proc but_no_msg_OpenFile uses eax ebx esi |
but_no_msg_OpenFile: |
push eax ebx |
stdcall [ted_open_file], tedit0,run_file_70,openfile_path |
call ted_messages_after_open_file |
|
mov esi,openfile_path |
call strlen |
add esi,eax |
@@: ;横« ¤«ï ¯®¨áª ç « ¨¬¥¨ ä ©« |
dec esi |
cmp byte[esi],'/' |
je @f |
cmp byte[esi],0x5c ;'\' |
je @f |
cmp esi,openfile_path |
jg @b |
@@: |
inc esi |
call strlen |
cmp eax,255 |
jle @f |
mov eax,255 |
@@: |
inc eax ;¤«ï 0 ¢ ª®æ¥ áâப¨ |
stdcall mem_cpy, filename_area,esi,eax ;ª®¯¨à㥬 ¨¬ï ä ©« ¢ ¤¨ «®£ á®åà ¥¨ï |
pop ebx eax |
ret |
endp |
|
;description: |
; äãªæ¨ï ®âªàëâ¨ï ä ©« á ¢®§¬®¦ë¬ ®ª®¬ á®®¡é¥¨ï (® ¢®§¬®¦®á⨠®â¬¥¨âì ®âªàë⨥) |
147,7 → 126,7 |
jle .no_crop |
mov eax,100 |
.no_crop: |
stdcall mem_cpy, msgbox_9.fdp,esi,eax |
stdcall mem_copy, esi,msgbox_9.fdp,eax |
stdcall [mb_create],msgbox_9,thread ;message: error run 'open file dialog' |
jmp .ret_f |
@@: |
195,23 → 174,17 |
endp |
|
;description: |
; äãªæ¨ï á®åà ¥¨ï ä ©« |
; äãªæ¨ï á®åà ¥¨ï ä ©« á ¢ë§®¢®¬ ®ª ¤¨ «®£ |
align 4 |
proc ted_but_save_file |
;*** ¢ë§®¢ ¤¨ «®£®¢®£® ®ª ¤«ï á®åà ¥¨ï ä ©« |
.init_dlg: |
copy_path open_dialog_name,communication_area_default_path,file_name,0 |
mov [OpenDialog_data.type],1 |
stdcall [OpenDialog_Start],OpenDialog_data |
cmp [OpenDialog_data.status],1 ;if status==1 then save |
jne .end_save |
jmp @f |
.no_dlg: ; á®åà 塞 ¡¥§ ¢ë§®¢ ¤¨ «®£®¢®£® ®ª |
cmp byte[openfile_path],0 |
je .init_dlg ; ® ¥á«¨ ¯ãâì ¯ãá⮩ â® ¢á¥-¦¥ ¢ë§ë¢ ¥¬ |
@@: |
jne .end_save_file |
stdcall [ted_save_file],tedit0,run_file_70,openfile_path |
.end_save: |
.end_save_file: |
ret |
endp |
|
218,7 → 191,7 |
;description: |
; ª®¯¨à®¢ ¨¥ ¯ ¬ï⨠|
align 4 |
proc mem_cpy uses ecx esi edi, destination:dword, source:dword, len:dword |
proc mem_copy uses ecx esi edi, source:dword, destination:dword, len:dword |
cld |
mov esi, dword[source] |
mov edi, dword[destination] |