Rev 5962 | Rev 6050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5962 | Rev 6008 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #endif |
37 | #endif |
Line 38... | Line 38... | ||
38 | 38 | ||
39 | dword mouse_ddd2; |
39 | dword mouse_ddd2; |
40 | char path_to_file[4096]="\0"; |
40 | char path_to_file[4096]="\0"; |
41 | char file_name2[4096]="\0"; |
41 | char file_name2[4096]="\0"; |
42 | edit_box file_name_ed = {195,50,25,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#file_name2,#mouse_ddd2, 1000000000000000b,2,2}; |
42 | edit_box file_name_ed = {195,50,25,0xffffff,0x94AECE,0xFFFfff,0xffffff,2,4098,#file_name2,#mouse_ddd2, 1000000000000000b,2,2}; |
43 | edit_box path_to_file_ed = {145,100,46,0xffffff,0x94AECE,0x000000,0xffffff,2,4098,#path_to_file,#mouse_ddd2, 1000000000000000b,2,2}; |
43 | edit_box path_to_file_ed = {145,100,46,0xffffff,0x94AECE,0xFFFfff,0xffffff,2,4098,#path_to_file,#mouse_ddd2, 1000000000000000b,2,2}; |
Line 44... | Line 44... | ||
44 | frame flags_frame = { 0, 280, 10, 83, 151, 0x000111, 0xFFFfff, 1, FLAGS, 0, 0, 6, 0x000111, 0xFFFFFF }; |
44 | frame flags_frame = { 0, 280, 10, 83, 151, 0x000111, 0xFFFfff, 1, FLAGS, 0, 0, 6, 0x000111, 0xFFFFFF }; |
45 | 45 | ||
46 | int file_count, dir_count, size_dir; |
46 | int file_count, dir_count, size_dir; |
Line 156... | Line 156... | ||
156 | dword dirbuf, fcount, i, filename; |
156 | dword dirbuf, fcount, i, filename; |
157 | dword cur_file; |
157 | dword cur_file; |
158 | if (isdir(way)) |
158 | if (isdir(way)) |
159 | { |
159 | { |
160 | cur_file = malloc(4096); |
160 | cur_file = malloc(4096); |
- | 161 | // In the process of recursive descent, memory must be allocated dynamically, |
|
161 | // In the process of recursive descent, memory must be allocated dynamically, because the static memory -> was a bug !!! But unfortunately pass away to sacrifice speed. |
162 | // because the static memory -> was a bug !!! But unfortunately pass away to sacrifice speed. |
162 | GetDir(#dirbuf, #fcount, way, DIRS_ONLYREAL); |
163 | GetDir(#dirbuf, #fcount, way, DIRS_ONLYREAL); |
163 | for (i=0; i |
164 | for (i=0; i |
164 | { |
165 | { |
165 | filename = i*304+dirbuf+72; |
166 | filename = i*304+dirbuf+72; |
166 | sprintf(cur_file,"%s/%s",way,filename); |
167 | sprintf(cur_file,"%s/%s",way,filename); |
Line 316... | Line 317... | ||
316 | } |
317 | } |
317 | } |
318 | } |
Line 318... | Line 319... | ||
318 | 319 | ||
319 | void DrawPropertiesWindow() |
320 | void DrawPropertiesWindow() |
320 | { |
321 | { |
321 | DefineAndDrawWindow(Form.left + 150,150,270,285+GetSkinHeight(),0x34,0xFFFFFF,WINDOW_TITLE_PROPERTIES); |
322 | DefineAndDrawWindow(Form.left + 150,150,270,285+GetSkinHeight(),0x34,system.color.work,WINDOW_TITLE_PROPERTIES); |
322 | GetProcessInfo(#settings_form, SelfInfo); |
323 | GetProcessInfo(#settings_form, SelfInfo); |
323 | DrawFlatButton(settings_form.cwidth - 70 - 13, settings_form.cheight - 34, 70, 22, 10, 0xE4DFE1, BTN_CLOSE); |
324 | DrawFlatButton(settings_form.cwidth - 80 - 13, settings_form.cheight - 34, 80, 24, 10, 0xE4DFE1, BTN_CLOSE); |
324 | DrawFlatButton(settings_form.cwidth - 150 - 13, settings_form.cheight - 34, 70, 22, 11, 0xE4DFE1, BTN_APPLY); |
325 | DrawFlatButton(settings_form.cwidth - 170 - 13, settings_form.cheight - 34, 80, 24, 11, 0xE4DFE1, BTN_APPLY); |
Line 325... | Line 326... | ||
325 | DrawBar(10, 10, 32, 32, 0xFFFfff); |
326 | DrawBar(10, 10, 32, 32, 0xFFFfff); |
326 | 327 |