Files
simplewall/src/notifications.hpp
T
2019-06-19 15:59:18 +06:00

29 lines
1023 B
C++

// simplewall
// Copyright (c) 2016-2019 Henry++
#pragma once
void _app_notifycreatewindow ();
bool _app_notifycommand (HWND hwnd, UINT button_id, size_t seconds);
bool _app_notifyadd (HWND hwnd, PR_OBJECT ptr_log_object, PITEM_APP ptr_app);
void _app_freenotify (PITEM_APP ptr_app, bool is_refresh);
void _app_freenotify (size_t app_hash, bool is_refresh);
size_t _app_notifyget_id (HWND hwnd);
PR_OBJECT _app_notifyget_obj (size_t app_hash);
bool _app_notifyshow (HWND hwnd, PR_OBJECT ptr_log_object, bool is_forced, bool is_safety);
void _app_notifyshow (HWND hwnd, bool is_forced, bool is_safety);
void _app_notifyhide (HWND hwnd);
void _app_notifyplaysound ();
bool _app_notifyrefresh (HWND hwnd, bool is_safety);
void _app_notifysettext (HDC hdc, HWND hwnd, UINT ctrl_id1, LPCWSTR text1, UINT ctrl_id2, LPCWSTR text2);
HFONT _app_notifyinitfont (PLOGFONT plf, LONG height, LONG weight, LPCWSTR name, BOOL is_underline);
LRESULT CALLBACK NotificationProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);