win: Set GUID when getting icon's bounds
This commit is contained in:
parent
15273c1f7a
commit
74248253f5
1 changed files with 5 additions and 0 deletions
|
@ -70,6 +70,11 @@ void NotifyIcon::HandleClickEvent(const gfx::Point& cursor_pos,
|
||||||
icon_id.uID = icon_id_;
|
icon_id.uID = icon_id_;
|
||||||
icon_id.hWnd = window_;
|
icon_id.hWnd = window_;
|
||||||
icon_id.cbSize = sizeof(NOTIFYICONIDENTIFIER);
|
icon_id.cbSize = sizeof(NOTIFYICONIDENTIFIER);
|
||||||
|
if (has_tray_app_id_hash_)
|
||||||
|
memcpy(reinterpret_cast<void*>(&icon_id.guidItem),
|
||||||
|
&tray_app_id_hash_,
|
||||||
|
sizeof(GUID));
|
||||||
|
|
||||||
RECT rect = { 0 };
|
RECT rect = { 0 };
|
||||||
Shell_NotifyIconGetRect(&icon_id, &rect);
|
Shell_NotifyIconGetRect(&icon_id, &rect);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue