Rev 7755 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7755 | Rev 7759 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //Leency & SoUrcerer, LGPL |
1 | //Leency & SoUrcerer, LGPL |
2 | //Hidnplayer |
2 | //Hidnplayer |
Line -... | Line 3... | ||
- | 3 | ||
- | 4 | TWebBrowser WB1; |
|
3 | 5 | ||
4 | #define LIST_INFO_H 59 |
6 | #define LIST_INFO_H 59 |
Line 5... | Line 7... | ||
5 | int status_bar_h = 15; |
7 | int status_bar_h = 15; |
Line 11... | Line 13... | ||
11 | 13 | ||
12 | char *mailstart; |
14 | char *mailstart; |
13 | char *mailend; |
15 | char *mailend; |
Line -... | Line 16... | ||
- | 16 | int mailsize; |
|
- | 17 | ||
Line 14... | Line 18... | ||
14 | int mailsize; |
18 | int cur_charset; |
15 | 19 | ||
16 | 20 | ||
17 | enum { |
21 | enum { |
Line 351... | Line 355... | ||
351 | WB1.list.SetSizes(0, mail_list.y+mail_list.h+LIST_INFO_H+1, Form.cwidth - scroll_wv.size_x - 1, |
355 | WB1.list.SetSizes(0, mail_list.y+mail_list.h+LIST_INFO_H+1, Form.cwidth - scroll_wv.size_x - 1, |
352 | Form.cheight - mail_list.y - mail_list.h - LIST_INFO_H - 1 - status_bar_h, 12); |
356 | Form.cheight - mail_list.y - mail_list.h - LIST_INFO_H - 1 - status_bar_h, 12); |
353 | WB1.list.column_max = WB1.list.w - 30 / 6; |
357 | WB1.list.column_max = WB1.list.w - 30 / 6; |
354 | WB1.list.visible = WB1.list.h / WB1.list.item_h; |
358 | WB1.list.visible = WB1.list.h / WB1.list.item_h; |
355 | WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, WB1.list.h); |
359 | WB1.DrawBuf.Init(WB1.list.x, WB1.list.y, WB1.list.w, WB1.list.h); |
356 | - | ||
357 | strcpy(#header, #version); |
- | |
358 | WB1.list.first = WB1.list.count = 0; |
360 | WB1.list.first = WB1.list.count = 0; |
359 | } |
361 | } |
Line 360... | Line 362... | ||
360 | 362 | ||
361 | 363 | ||
362 | void DrawLetter() { |
- | |
363 | bufsize = strlen(mdata); |
- | |
364 | bufpointer = mdata; |
- | |
365 | if (bufsize) && (bufpointer) { |
364 | void DrawLetter() { |
366 | WB1.ParseHtml(); |
- | |
367 | WB1.DrawPage(); |
365 | WB1.ParseHtml(mdata, strlen(mdata)); |
368 | } |
366 | WB1.DrawPage(); |
Line 369... | Line 367... | ||
369 | DrawRectangle(scroll_wv.start_x, scroll_wv.start_y, scroll_wv.size_x, scroll_wv.size_y-1, 0xFFFfff); |
367 | DrawRectangle(scroll_wv.start_x, scroll_wv.start_y, scroll_wv.size_x, scroll_wv.size_y-1, 0xFFFfff); |
370 | } |
368 | } |
Line 387... | Line 385... | ||
387 | DrawBar(0, st_y, Form.cwidth, status_bar_h, system.color.work); |
385 | DrawBar(0, st_y, Form.cwidth, status_bar_h, system.color.work); |
388 | if (aim) { |
386 | if (aim) { |
389 | SetMailBoxStatus(cur_st_percent, cur_st_text); |
387 | SetMailBoxStatus(cur_st_percent, cur_st_text); |
390 | DrawCaptButton(240, st_y+1, 36, status_bar_h-3, STOP_LOADING, system.color.work_button, system.color.work_button_text,"Stop"); |
388 | DrawCaptButton(240, st_y+1, 36, status_bar_h-3, STOP_LOADING, system.color.work_button, system.color.work_button_text,"Stop"); |
391 | } |
389 | } |
392 | DrawCaptButton(Form.cwidth - 100, st_y+1, 70, status_bar_h-2, CHANGE_CHARSET+BT_HIDE, system.color.work, system.color.work_text,charsets[cur_charset]); |
390 | DrawCaptButton(Form.cwidth - 100, st_y+1, 70, status_bar_h-2, CHANGE_CHARSET+BT_HIDE, |
- | 391 | system.color.work, system.color.work_text,cur_charset*10+#charsets); |
|
393 | } |
392 | } |
Line 394... | Line 393... | ||
394 | 393 |