Josh Posted July 31, 2022 Posted July 31, 2022 Just putting some notes here... NOTIFYICONDATA nid; nid.cbSize = sizeof(NOTIFYICONDATA); nid.hWnd = win->GetHandle(); nid.uID = 100; nid.uVersion = NOTIFYICON_VERSION; nid.uCallbackMessage = WM_SIZE; nid.hIcon = LoadIconA(NULL, IDI_APPLICATION); std::string s = title.ToString(); memcpy(nid.szTip, s.c_str(), s.size()); nid.szTip[s.size()] = 0; nid.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP; Shell_NotifyIcon(NIM_ADD, &nid); https://bobobobo.wordpress.com/2009/03/30/adding-an-icon-system-tray-win32-c/ Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.