Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/NotificationMessage.h

Issue 29333356: Noissue - Eliminate compile warnings in the plugin (Closed)
Patch Set: Created Jan. 11, 2016, 3:46 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/plugin/NotificationMessage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/NotificationMessage.h
===================================================================
--- a/src/plugin/NotificationMessage.h
+++ b/src/plugin/NotificationMessage.h
@@ -28,6 +28,10 @@
bool Show(std::wstring message, std::wstring title, int icon);
void Hide();
void Move(short x, short y);
+ void MoveToCenter(const RECT& r)
+ {
+ Move(static_cast<short>((r.left + r.right) / 2), static_cast<short>((r.top + r.bottom) / 2));
+ }
bool SetTextAndIcon(std::wstring text, std::wstring title, int icon);
void SetParent(HWND parent);
bool IsVisible();
« no previous file with comments | « no previous file | src/plugin/NotificationMessage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld