2,8 → 2,9 |
|
struct llist |
{ |
int x, y, w, h, min_h, line_h, text_y; |
int x, y, w, h, min_h, line_h; |
int count, visible, first, current; |
int current_temp; |
void ClearList(); |
int ProcessKey(dword key); |
int MouseOver(int xx, yy); |
31,9 → 32,7 |
h = hh; |
min_h = min_hh; |
line_h = line_hh; |
text_y = line_hh / 2 - 4; |
visible = h / line_h; |
if (visible > count) visible=count; |
} |
|
|
61,11 → 60,10 |
|
int llist::ProcessMouse(int xx, yy) |
{ |
int current_temp; |
if (MouseOver(xx, yy)) |
{ |
current_temp = yy - y / line_h + first; |
if (current_temp != current) && (current_temp<count) |
if (current_temp != current) |
{ |
current = current_temp; |
return 1; |