Пример #1
0
static int winButtonWmNotify(Ihandle* ih, NMHDR* msg_info, int *result)
{
  if (msg_info->code == NM_CUSTOMDRAW)
    return iupwinCustomDrawToDrawItem(ih, msg_info, result, (IFdrawItem)winButtonDrawItem);

  return 0; /* result not used */
}
Пример #2
0
static int winToggleImageWmNotify(Ihandle* ih, NMHDR* msg_info, int *result)
{
    /* called only when (ih->data->type==IUP_TOGGLE_IMAGE && iupwin_comctl32ver6) */

    if (msg_info->code == NM_CUSTOMDRAW)
        return iupwinCustomDrawToDrawItem(ih, msg_info, result, (IFdrawItem)winToggleDrawItem);

    return 0; /* result not used */
}