static int winDialogSetTrayImageAttrib(Ihandle *ih, const char *value) { if (winDialogCheckTray(ih)) { HICON hIcon = (HICON)iupImageGetIcon(value); if (hIcon) winDialogTrayMessage(ih->handle, NIM_MODIFY, hIcon, NULL); } return 1; }
static int winDialogSetTrayTipAttrib(Ihandle *ih, const char *value) { if (winDialogCheckTray(ih)) { int balloon = IupGetInt(ih, "TRAYTIPBALLOON"); /* must use IupGetInt to use inheritance */ if (balloon) winDialogTrayBalloonMessage(ih, value); else winDialogTrayMessage(ih->handle, NIM_MODIFY, NULL, value); } return 1; }
static int winDialogSetTrayTipAttrib(Ihandle *ih, const char *value) { if (winDialogCheckTray(ih)) winDialogTrayMessage(ih->handle, NIM_MODIFY, NULL, (PSTR)value); return 1; }