Jump to content

Recommended Posts

Posted

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/

Let's build cool stuff and have fun. :)

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...