#include <CUserNotification.h>
Definition at line 27 of file CUserNotification.h.
◆ CUserNotification()
CUserNotification::CUserNotification |
( |
| ) |
|
◆ ~CUserNotification()
CUserNotification::~CUserNotification |
( |
| ) |
|
Definition at line 59 of file CUserNotification.cpp.
60{
61
63 {
64
68 }
69
70
73}
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI DestroyIcon(_In_ HICON)
◆ DelayRemoveIcon()
Definition at line 87 of file CUserNotification.cpp.
88{
89
93}
#define BALLOON_DELAYREMOVE_TIMEOUT
#define ID_BALLOON_DELAYREMOVE
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
Referenced by TimeoutIcon(), and WorkerWndProc().
◆ PlaySound()
Definition at line 469 of file CUserNotification.cpp.
471{
472
478}
BOOL WINAPI PlaySoundW(LPCWSTR pszSoundW, HMODULE hmod, DWORD fdwSound)
◆ RemoveIcon()
VOID CUserNotification::RemoveIcon |
( |
| ) |
|
|
private |
◆ SetBalloonInfo()
Definition at line 160 of file CUserNotification.cpp.
164{
166
170
171
174
175
179 else
181}
VOID SetUpNotifyData(IN UINT uFlags, IN OUT PNOTIFYICONDATAW pnid)
◆ SetBalloonRetry()
◆ SetIconInfo()
Definition at line 196 of file CUserNotification.cpp.
199{
201
202
205
207 {
208
210 }
211 else
212 {
213
216
217 if (uIcon == NIIF_INFO)
219 else if (uIcon == NIIF_WARNING)
221 else if (uIcon == NIIF_ERROR)
223 else if (uIcon == NIIF_USER)
225
227 }
228
230
231
234
235
239 else
241}
HICON WINAPI CopyIcon(_In_ HICON)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
◆ SetUpNotifyData()
◆ Show()
Definition at line 393 of file CUserNotification.cpp.
396{
399
400
402 {
406 {
409 }
410
411
414 {
418 }
419 }
420
422
423
425 if (pqc)
426 {
429 }
430
431
434
435
438 {
441 }
443
444
445 if (pqc)
446 {
449 }
451
452
454}
static LRESULT CALLBACK WorkerWndProc(IN HWND hWnd, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam)
#define FAILED_UNEXPECTEDLY(hr)
#define ID_BALLOON_QUERYCONT
#define ID_BALLOON_SHOWTIME
HWND WINAPI SHCreateWorkerWindowW(WNDPROC wndProc, HWND hWndParent, DWORD dwExStyle, DWORD dwStyle, HMENU hMenu, LONG_PTR wnd_extra)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
◆ TimeoutIcon()
VOID CUserNotification::TimeoutIcon |
( |
| ) |
|
|
private |
Definition at line 95 of file CUserNotification.cpp.
96{
97
98
99
100
102 {
103
105
106
108 }
109 else
110 {
111
113 }
114}
VOID DelayRemoveIcon(IN HRESULT hRes)
#define ID_BALLOON_TIMEOUT
#define HRESULT_FROM_WIN32(x)
Referenced by WorkerWndProc().
◆ WorkerWndProc()
Definition at line 245 of file CUserNotification.cpp.
250{
251
255
256 TRACE(
"Msg = 0x%x\n", uMsg);
257 switch (uMsg)
258 {
259
260
261
262
263
264
266 {
267
270 return 0;
271 }
272
274 {
277 return 0;
278 }
279
281 {
282
283
284
285
290 }
291
293 {
295
296
298
300 {
301
305 }
307 {
308
311 }
313 {
314
315
316
317
319 {
320
322 }
323 else
324 {
325
327 }
328 }
330 {
331
333 }
334 return 0;
335 }
336
337
338
339
340
341
342
344 {
347
349 {
350 case NIN_BALLOONSHOW:
351 TRACE(
"NIN_BALLOONSHOW\n");
352 break;
353
354 case NIN_BALLOONHIDE:
355 TRACE(
"NIN_BALLOONHIDE\n");
356 break;
357
358
359 case NIN_BALLOONTIMEOUT:
360 {
361 TRACE(
"NIN_BALLOONTIMEOUT\n");
363 break;
364 }
365
366
367 case NIN_BALLOONUSERCLICK:
368 TRACE(
"NIN_BALLOONUSERCLICK\n");
369
370
371
374 {
376 break;
377 }
378
379 default:
380 break;
381 }
382
383 return 0;
384 }
385 }
386
388}
unsigned __int3264 UINT_PTR
#define GetWindowLongPtrW
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define WM_QUERYENDSESSION
#define SetWindowLongPtrW
Referenced by Show().
◆ m_bIsShown
BOOL CUserNotification::m_bIsShown |
|
private |
◆ m_cRetryCount
UINT CUserNotification::m_cRetryCount |
|
private |
◆ m_dwInfoFlags
DWORD CUserNotification::m_dwInfoFlags |
|
private |
◆ m_hIcon
HICON CUserNotification::m_hIcon |
|
private |
◆ m_hRes
◆ m_hWorkerWnd
HWND CUserNotification::m_hWorkerWnd |
|
private |
◆ m_pqc
IQueryContinue* CUserNotification::m_pqc |
|
private |
◆ m_szInfo
CStringW CUserNotification::m_szInfo |
|
private |
◆ m_szInfoTitle
CStringW CUserNotification::m_szInfoTitle |
|
private |
◆ m_szTip
CStringW CUserNotification::m_szTip |
|
private |
◆ m_uContinuePoolInterval
UINT CUserNotification::m_uContinuePoolInterval |
|
private |
◆ m_uInterval
UINT CUserNotification::m_uInterval |
|
private |
◆ m_uShowTime
UINT CUserNotification::m_uShowTime |
|
private |
The documentation for this class was generated from the following files: