comparison win/wintoast.cpp @ 2625:2e804b4db81e

Win: Standardize internal function name style...
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 27 Jul 2021 23:09:52 +0000
parents 663467f6eee4
children
comparison
equal deleted inserted replaced
2624:42cacc1a1783 2625:2e804b4db81e
4 #include "wintoastlib.h" 4 #include "wintoastlib.h"
5 5
6 using namespace WinToastLib; 6 using namespace WinToastLib;
7 7
8 extern "C" { 8 extern "C" {
9 LRESULT CALLBACK _wndproc(HWND hWnd, UINT msg, WPARAM mp1, LPARAM mp2); 9 LRESULT CALLBACK _dw_wndproc(HWND hWnd, UINT msg, WPARAM mp1, LPARAM mp2);
10 } 10 }
11 11
12 class DWHandler : public IWinToastHandler { 12 class DWHandler : public IWinToastHandler {
13 public: 13 public:
14 WinToastTemplate *templ; 14 WinToastTemplate *templ;
15 15
16 void toastActivated() const { 16 void toastActivated() const {
17 // The user clicked in this toast 17 // The user clicked in this toast
18 _wndproc((HWND)templ, WM_USER+102, 0, 0); 18 _dw_wndproc((HWND)templ, WM_USER+102, 0, 0);
19 dw_signal_disconnect_by_window((HWND)templ); 19 dw_signal_disconnect_by_window((HWND)templ);
20 delete templ; 20 delete templ;
21 } 21 }
22 22
23 void toastActivated(int actionIndex) const { 23 void toastActivated(int actionIndex) const {
24 // The user clicked on action 24 // The user clicked on action
25 _wndproc((HWND)templ, WM_USER+102, 0, 0); 25 _dw_wndproc((HWND)templ, WM_USER+102, 0, 0);
26 dw_signal_disconnect_by_window((HWND)templ); 26 dw_signal_disconnect_by_window((HWND)templ);
27 delete templ; 27 delete templ;
28 } 28 }
29 29
30 void toastDismissed(WinToastDismissalReason state) const { 30 void toastDismissed(WinToastDismissalReason state) const {