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

Side by Side Diff: src/plugin/NotificationMessage.h

Issue 11557015: Tooltip notification. Check for update fixes. (Closed)
Patch Set: Evem more comments addressing Created Sept. 25, 2013, 2:30 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #ifndef NOTIFICATION_MESSAGE_H 1 #ifndef NOTIFICATION_MESSAGE_H
2 #define NOTIFICATION_MESSAGE_H 2 #define NOTIFICATION_MESSAGE_H
3 3
4 #include <string> 4 #include <string>
5 5
6 class NotificationMessage 6 class NotificationMessage
7 { 7 {
8 public: 8 public:
9 NotificationMessage(); 9 NotificationMessage(HWND parent = 0);
10 NotificationMessage(HWND parent);
11 ~NotificationMessage(){}; 10 ~NotificationMessage(){};
12 bool Show(std::wstring message, std::wstring title, int icon); 11 bool Show(std::wstring message, std::wstring title, int icon);
13 bool Hide(); 12 void Hide();
14 void Move(short x, short y); 13 void Move(short x, short y);
15 bool SetTextAndIcon(std::wstring text, std::wstring title, int icon); 14 bool SetTextAndIcon(std::wstring text, std::wstring title, int icon);
16 void SetParent(HWND parent); 15 void SetParent(HWND parent);
17 bool IsVisible(); 16 bool IsVisible();
18 private: 17 private:
19 HWND parentWindow; 18 HWND parentWindow;
20 HWND toolTipWindow; 19 HWND toolTipWindow;
21 static bool commonControlsInitialized; 20 static bool commonControlsInitialized;
22 static void CommonControlsInitialize(); 21 static void InitializeCommonControls();
23 }; 22 };
24 23
25 #endif 24 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld