Created
November 11, 2010 12:37
-
-
Save noqisofon/672424 to your computer and use it in GitHub Desktop.
タスクトレイに常駐プログラムを追加する感じ。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef char gchar; | |
typedef HWND widget_t; | |
typedef HICON icon_t; | |
typedef NOTIFYICONDATA notify_icon_t; | |
void notifyicon_demo_append_notify_icon(widget_t window, icon_t tasktray_icon) | |
{ | |
notify_icon_t notify; | |
gchar tooltip_text[] = "もふーん"; | |
notify.cbSize = sizeof(notify_icon_t); | |
notify.hWnd = window; | |
notify.uID = 0; | |
notify.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP; | |
notify.uCallbackMessage = WM_TRAYICONMESSAGE; | |
notify.hICon = tasktray_icon; | |
shell_notifyicon_append( ¬ify ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment