15 #ifndef WINDOWS_TRAY_NOTIFICATION_HPP_INCLUDED
16 #define WINDOWS_TRAY_NOTIFICATION_HPP_INCLUDED
26 #define _WIN32_IE 0x0600 //specifying target platform to be Windows XP and higher
29 #define NIIF_USER 0x00000004
31 #ifndef NIN_BALLOONTIMEOUT
32 #define NIN_BALLOONTIMEOUT (WM_USER + 4)
34 #ifndef NIN_BALLOONUSERCLICK
35 #define NIN_BALLOONUSERCLICK (WM_USER + 5)
65 static NOTIFYICONDATA*
nid;
85 #endif // WINDOWS_TRAY_NOTIFICATION_HPP_INCLUDED
static void destroy_tray_icon()
static const unsigned int WM_TRAYNOTIFY
static HWND get_window_handle()
static void switch_to_wesnoth_window()
windows_tray_notification & operator=(const windows_tray_notification &w)
static bool set_tray_message(const std::string &title, const std::string &message)
static bool create_tray_icon()
static const size_t MAX_TITLE_LENGTH
static bool message_reset
GLubyte GLubyte GLubyte GLubyte w
static const size_t MAX_MESSAGE_LENGTH
windows_tray_notification()
GLsizei GLenum GLuint GLuint GLsizei char * message
static bool show(std::string title, std::string message)
Displays a tray notification.
static void adjust_length(std::string &title, std::string &message)
static void handle_system_event(const SDL_Event &event)
Frees resources when a notification disappears, switches user to the wesnoth window if the notificati...
static NOTIFYICONDATA * nid
GLsizei const GLcharARB ** string
static std::wstring string_to_wstring(const std::string &string, size_t maxlength)