| 388 | } |
| 389 | |
| 390 | void Widget::SetCursor(StandardCursor cursor) |
| 391 | { |
| 392 | if (CurrentCursor != cursor) |
| 393 | { |
| 394 | CurrentCursor = cursor; |
| 395 | if (HoverWidget == this || CaptureWidget == this) |
| 396 | { |
| 397 | Widget* w = Window(); |
| 398 | if (w) |
| 399 | { |
| 400 | w->DispWindow->SetCursor(CurrentCursor); |
| 401 | } |
| 402 | } |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | void Widget::CaptureMouse() |
| 407 | { |