C++ WINAPI- How to detect clicks on shell icon? -


i have created shell code this:

nid.cbsize = notifyicondata_v2_size; nid.hwnd = hwnd; nid.uflags = nif_icon | nif_info | nif_tip | nif_showtip; nid.dwinfoflags = niif_large_icon; nid.uversion = notifyicon_version_4; nid.hicon = (hicon)loadimage(getmodulehandle(null), makeintresource(main_icon), image_icon, 16, 16, 0);  static const guid myguid = { 0x23977b55, 0x10e0, 0x4041, { 0xb8, 0x62, 0xb1, 0x95, 0x41, 0x96, 0x36, 0x69 } };  nid.guiditem = myguid; strcpy(nid.sztip, program_title); strcpy(nid.szinfotitle, txt); strcpy(nid.szinfo, txt2); nid.utimeout = 500;  shell_notifyicon(nim_delete, &nid); shell_notifyicon(nim_add, &nid); shell_notifyicon(nim_setversion, &nid); 

now detect if user click on icon, no need kind of popup menus , such, bring application foreground when shell icon clicked.

by googling came around this link, i'm not sure i'm looking for? appreciate, if show me way.


Comments

Popular posts from this blog

google app engine - 403 Forbidden POST - Flask WTForms -

Android layout hidden on keyboard show -

Parse xml element into list in Python -