Guest User

Untitled

a guest
Jun 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. typedef char gchar;
  2.  
  3.  
  4. typedef HWND widget_t;
  5. typedef HICON icon_t;
  6.  
  7. typedef NOTIFYICONDATA notify_icon_t;
  8.  
  9.  
  10. void notifyicon_demo_append_notify_icon(widget_t window, icon_t tasktray_icon)
  11. {
  12. notify_icon_t notify;
  13.  
  14. gchar tooltip_text[] = "もちーん";
  15.  
  16. notify.cbSize = sizeof(notify_icon_t);
  17. notify.hWnd = window;
  18. notify.uID = 0;
  19. notify.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
  20. notify.uCallbackMessage = WM_TRAYICONMESSAGE;
  21. notify.hICon = tasktray_icon;
  22.  
  23. shell_notifyicon_append( &notify );
  24. }
Add Comment
Please, Sign In to add comment