65 struct _finddata_t ffblk;
72 sprintf(str,
"%s\\%s", idir,
"*.*");
75 handle = _findfirst(str, &ffblk);
82 done = _findnext(handle, &ffblk);
83 if(done == 0 && (ffblk.attrib & _A_SUBDIR) == _A_SUBDIR)
85 sprintf(str,
"[%s]", ffblk.name);
93 sprintf(str,
"%s\\%s", idir, ext);
94 handle = _findfirst(str, &ffblk);
97 if(strcmp(ext,
"*.*") == 0)
101 done = _findnext(handle, &ffblk);
102 strcpy(str, _strupr(ffblk.name));
114 done = _findnext(handle, &ffblk);
115 strcpy(str, _strupr(ffblk.name));
116 if(strncmp(&str[strlen(str) - 4], &ext[strlen(ext) - 4], 4) == 0)
141 sprintf(buf,
"%s\\", buf);
144 sprintf(buf,
"%s",
DFMT);
158 case FDAT: strcpy(
DFMT,
"*.DAT");
break;
159 case FMAP: strcpy(
DFMT,
"*.MAP");
break;
160 case FELE: strcpy(
DFMT,
"*.ELE");
break;
161 case FALL: strcpy(
DFMT,
"*.*");
break;
162 case FRIS: strcpy(
DFMT,
"*.RIS");
break;
163 case FFID: strcpy(
DFMT,
"*.FIN");
break;
164 case FCOL: strcpy(
DFMT,
"*.COL");
break;
165 case FMOD: strcpy(
DFMT,
"*.MOD");
break;
166 case FBIF: strcpy(
DFMT,
"*.BIF");
break;
178 char buf[256],buf1[256];
179 int flgbs = 0, i,STRLEN;
182 if(reent != 0 && reent != 1) reent = 0;
183 if(reent == 1)
return;
185 strcpy(str, la->
item);
201 strcat(buf, &la->
item[1]);
211 STRLEN = strlen(buf);
213 if(buf[STRLEN - i] != 0x5C)
310 OSVERSIONINFOEX osvi;
311 BOOL bOsVersionInfoEx;
313 ZeroMemory(&osvi,
sizeof(OSVERSIONINFOEX));
314 osvi.dwOSVersionInfoSize =
sizeof(OSVERSIONINFOEX);
316 if( !(bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osvi)) )
319 osvi.dwOSVersionInfoSize =
sizeof (OSVERSIONINFO);
320 if (! GetVersionEx ( (OSVERSIONINFO *) &osvi) )
324 switch (osvi.dwPlatformId)
327 case VER_PLATFORM_WIN32_NT:
331 case VER_PLATFORM_WIN32_WINDOWS:
335 case VER_PLATFORM_WIN32s:
353 sprintf(
DFMT,
"%s",text);
357 STRLEN = strlen(buf1);
361 if(buf1[STRLEN - i] != 0x5C)
363 buf1[STRLEN - i] = 0;
369 buf1[STRLEN - i] = 0;
390 case 0: er = _chdir(buff);
394 if(str[strlen(
DFNAME) - 1] != 0x5C)
400 case 1: strcpy(
DFNAME, buff);
416 int drive, curdrive = 0, sysop;
422 curdrive = _getdrive();
466 for(drive = 1; drive <= 26; drive++)
468 sprintf( buf,
"%c:", drive +
'A' - 1 );
570 _chdrive( curdrive );
void ChDriveCB(MOBJECT rb, MVALUE s, void *ad)
void MObjectSetBackgroundRGB(MOBJECT obj, int r, int g, int b)
#define WIN_NT
Define NT/XP/2000 and LINUX operating system (Realtime not possible).
void DFMSelListCB(MOBJECT p, LIST_ACT *la, void *v)
short DB_FG_Plbl[3]
Foreground PASSIVE Label Colors.
void MObjectSetUnsensitive(MOBJECT obj)
MOBJECT MCreateLabel(MOBJECT parent, const char *text, MTFont font)
void MObjectSetResize(MOBJECT obj, int resize_w, int resize_h)
short DB_BG_Albl[3]
Background ACTIVE Label Colors.
void MObjectAlign(MOBJECT obj, int h_align, int v_align)
void MTableFormSetColAlign(MOBJECT form, int col, int al)
char * MObjectGetText(MOBJECT obj, char *text)
MOBJECT MCreateClippedEdit(MOBJECT parent, const char *text, int len, int clip_len, MTFont font)
void MShellUnrealize(MOBJECT obj)
void MObjectSetText(MOBJECT obj, const char *text)
void MShellDestroy(MOBJECT obj)
MOBJECT MCreateTableForm(MOBJECT parent, int n_cols)
void MRButtonSetCallback(MOBJECT button, OBJ_VALUE_CB cb, void *data)
MOBJECT MCreatePButton(MOBJECT parent, const char *text, MTFont font)
void ShowFileDrive(char *idir, char *ext)
void MSListClear(MOBJECT p)
void MEditSetActCallback(MOBJECT edit, OBJ_STRING_CB cb, void *data)
MOBJECT MCreateSList(MOBJECT parent, MTFont font, int row_len, int nrow, int ncol)
void(* LIST_SEL_CB)(MOBJECT list, LIST_SEL *la, void *ad)
void MRButtonActivate(MOBJECT o)
char DBFILENAME[_MAX_PATH]
MOBJECT MDCreateFM_Shell(int mod, int fmt)
MOBJECT MCreateColForm(MOBJECT parent)
void MShellRealizeXY(MOBJECT obj, int x, int y)
void MSListSetSelectionCallback(MOBJECT obj, LIST_SEL_CB cb, void *data)
MOBJECT MCreateShell(const char *title, int flags)
short DB_BG[3]
Default Background Color.
MOBJECT MCreateRButton(MOBJECT parent, const char *text, MTFont font)
void MSListSetSortCallback(MOBJECT obj, STRCMP_CB cb)
void MTableFormSetRowAlign(MOBJECT form, int row, int al)
void(* OBJ_VALUE_CB)(MOBJECT obj, MVALUE value, void *ad)
void MLabelSetAlignment(MOBJECT p, int align)
Bortul Image Library Structure .
Types, structures and defines used in DCL libraries.
void MFormSetSpacing(MOBJECT p, int offset)
void MPButtonSetCallback(MOBJECT button, MGUI_CB cb, void *data)
char WORKDIRECTORY[_MAX_PATH]
void D_FInpFDCB(MOBJECT edit, char *buff, void *a)
short DB_UnSel[3]
Unselected Buttons Colors.
void D_FMDoneCB(MOBJECT shell, void *od, void *ad)
int MSListAddItem(MOBJECT p, const char *item, void *data)
void MLoopWhileFlag(int *pflag, int value)
void MObjectSetForegroundRGB(MOBJECT obj, int r, int g, int b)
MOBJECT MCreateRowForm(MOBJECT parent)
void txtfileEditCB(MOBJECT edit, char *text, char *ed)