#include "desktop/windows_tray_notification.hpp"#include "gettext.hpp"#include "serialization/string_utils.hpp"#include "serialization/unicode.hpp"#include "sdl/window.hpp"#include "video.hpp"#include <windows.h>#include <shellapi.h>Go to the source code of this file.
Namespaces | |
| windows_tray_notification | |
| windows_tray_notification::implementation | |
| windows_tray_notification::implementation::helper | |
Macros | |
| #define | UNICODE |
| #define | WIN32_LEAN_AND_MEAN |
Functions | |
| HWND | windows_tray_notification::implementation::helper::get_window_handle () |
| std::wstring | windows_tray_notification::implementation::helper::string_to_wstring (const std::string &string, std::size_t maxlength) |
| void | windows_tray_notification::implementation::destroy_tray_icon () |
| bool | windows_tray_notification::implementation::create_tray_icon () |
| bool | windows_tray_notification::implementation::set_tray_message (const std::string &title, const std::string &message) |
| void | windows_tray_notification::implementation::adjust_length (std::string &title, std::string &message) |
| void | windows_tray_notification::implementation::switch_to_wesnoth_window () |
| bool | windows_tray_notification::show (std::string title, std::string message) |
| Displays a tray notification. More... | |
| bool | windows_tray_notification::message_hook (const MSG &msg) |
| Frees resources when a notification disappears, switches user to the wesnoth window if the notification popup was clicked by user. More... | |
Variables | |
| constexpr int | windows_tray_notification::implementation::ICON_ID = 1007 |
| constexpr unsigned int | windows_tray_notification::implementation::WM_TRAYNOTIFY = 32868 |
| constexpr std::size_t | windows_tray_notification::implementation::MAX_TITLE_LENGTH = 63 |
| constexpr std::size_t | windows_tray_notification::implementation::MAX_MESSAGE_LENGTH = 255 |
| NOTIFYICONDATA * | windows_tray_notification::implementation::nid = nullptr |
| bool | windows_tray_notification::implementation::message_reset = false |
| #define UNICODE |
Definition at line 26 of file windows_tray_notification.cpp.
| #define WIN32_LEAN_AND_MEAN |
Definition at line 29 of file windows_tray_notification.cpp.