| 306 | } |
| 307 | |
| 308 | void CUIWindow::GetAbsoluteRect(Frect& r) |
| 309 | { |
| 310 | //. Frect rect; |
| 311 | |
| 312 | if (GetParent() == NULL) |
| 313 | { |
| 314 | GetWndRect(r); |
| 315 | return; |
| 316 | } |
| 317 | //. rect = GetParent()->GetAbsoluteRect(); |
| 318 | GetParent()->GetAbsoluteRect(r); |
| 319 | |
| 320 | Frect rr; |
| 321 | GetWndRect(rr); |
| 322 | r.left += rr.left; |
| 323 | r.top += rr.top; |
| 324 | r.right = r.left + GetWidth(); |
| 325 | r.bottom = r.top + GetHeight(); |
| 326 | //. return rect; |
| 327 | } |
| 328 | |
| 329 | //реакция на мышь |
| 330 | //координаты курсора всегда, кроме начального вызова |
no test coverage detected