kolibrios/programs/cmm/TWB/some_code.h
Kirill Lipatov (Leency) b0297021f9 code refactoring #3
HTMLv 0.99.3: use list_box.h

git-svn-id: svn://kolibrios.org@4415 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-27 11:15:17 +00:00

30 lines
610 B
C

enum { BACK=300, FORWARD, REFRESH, HOME, NEWTAB, GOTOURL, SEARCHWEB, INPUT_CH, INPUT_BT, BTN_UP, BTN_DOWN };
enum { _WIN, _DOS, _KOI, _UTF };
dword get_URL_part(int len) {
char temp1[sizeof(URL)];
strcpy(#temp1, #URL);
temp1[len] = 0x00;
return #temp1;
}
inline byte chTag(dword text) {return strcmp(#tag,text);}
void GetURLfromPageLinks(int id)
{
int i, j = 0;
for (i = 0; i <= id - 401; i++)
{
do
{
j++;
if (j>=strlen(#page_links)) return;
}
while (page_links[j] <>'|');
}
page_links[j] = 0x00;
strcpy(#URL, #page_links+strrchr(#page_links, '|'));
}