/programs/cmm/eolite/include/progress_dialog.h |
---|
38,7 → 38,7 |
DefineAndDrawWindow(Form.left+Form.width-200,Form.top+90,WIN_DIALOG_W,skin_height+WIN_DIALOG_H,0x34,system.color.work,title); |
GetProcessInfo(#Dialog_Form, SelfInfo); |
WriteText(45, 11, 0x90, system.color.work_text, message); |
DrawFlatButton(Dialog_Form.cwidth - 96, /*Dialog_Form.cheight - 32*/ copy_bar.top , 80, 22, T_CANCEL_PASTE, T_ABORT_WINDOW_BUTTON); |
DrawFlatButton(Dialog_Form.cwidth - 105, copy_bar.top-2 , T_CANCEL_PASTE, T_ABORT_WINDOW_BUTTON); |
} |
} |
/programs/cmm/lib/gui.h |
---|
171,7 → 171,7 |
w = ESI.edit_box.width+1; |
if (ESI.edit_box.flags & 100000000000b) bg = 0xCACACA; else bg = 0xFFFfff; |
edit_box_draw stdcall (edit_box_pointer); |
h = ESI.edit_box.ed_height+2; |
h = 22; |
DrawRectangle(x-1, y-1, w+1, h+1, bg); |
DrawRectangle3D(x-2, y-2, w+3, h+3, 0xDDDddd, bg); |
DrawRectangle(x-3, y-3, w+5, h+5, system.color.work_graph); |
/programs/cmm/lib/patterns/restart_process.h |
---|
10,10 → 10,12 |
SINGLE |
}; |
#define MAX_PROCESS_COUNT 256 |
:int CheckProcessExists(dword proc_name) { |
int i; |
proc_info Process; |
for (i=0; i<1000; i++;) |
for (i=0; i<MAX_PROCESS_COUNT; i++;) |
{ |
GetProcessInfo(#Process, i); |
if (strcmpi(#Process.name, proc_name)==0) return 1; |
24,7 → 26,7 |
:void KillProcessByName(dword proc_name, byte multiple) { |
int i; |
proc_info Process; |
for (i=0; i<1000; i++;) |
for (i=0; i<MAX_PROCESS_COUNT; i++;) |
{ |
GetProcessInfo(#Process, i); |
if (strcmpi(#Process.name, proc_name)==0) |
/programs/cmm/process/process.c |
---|
11,6 → 11,7 |
#include "../lib/obj/box_lib.h" |
#include "../lib/io.h" |
#include "../lib/patterns/select_list.h" |
#include "../lib/patterns/restart_process.h" |
//===================================================// |
// // |
133,7 → 134,7 |
{ |
int i, j; |
select_list.count=0; |
for (i=0; i<65535; i++) |
for (i=0; i<MAX_PROCESS_COUNT; i++) |
{ |
GetProcessInfo(#Process, i); |
if (Process.name) |