Switched to gfx::Rect
constructor that takes a RECT
As per @zcbenz's suggestion the rect passed to the click event handler now passes a rect constructed using `gfx::Rect(const RECT& r)`.
This commit is contained in:
parent
e5c4e34ac4
commit
16c08e7e37
1 changed files with 1 additions and 3 deletions
|
@ -58,9 +58,7 @@ void NotifyIcon::HandleClickEvent(const gfx::Point& cursor_pos,
|
||||||
RECT rect;
|
RECT rect;
|
||||||
Shell_NotifyIconGetRect(&icon_id, &rect);
|
Shell_NotifyIconGetRect(&icon_id, &rect);
|
||||||
|
|
||||||
int width = rect.right - rect.left;
|
NotifyClicked(gfx::Rect(rect));
|
||||||
int height = rect.bottom - rect.top;
|
|
||||||
NotifyClicked(gfx::Rect(rect.left, rect.top, width, height));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue