mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-25 08:06:49 +03:00
cmm: various fixes
git-svn-id: svn://kolibrios.org@6708 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
eb9257c0ff
commit
0048242452
@ -38,7 +38,7 @@ void DisplayOperationForm()
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -10,10 +10,12 @@ enum {
|
||||
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 @@ enum {
|
||||
: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)
|
||||
|
@ -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 @@ void GetProcessList()
|
||||
{
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user