示例#1
0
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;
}
示例#2
0
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;
}
示例#3
0
static int winDialogSetTrayTipAttrib(Ihandle *ih, const char *value)
{
  if (winDialogCheckTray(ih))
    winDialogTrayMessage(ih->handle, NIM_MODIFY, NULL, (PSTR)value);
  return 1;
}