Hi,all~
When I was learning progress bars, I had trouble writing custom skin functions for the PROGBAR. How to write the PROGBAR color function in the custom function.
/****************Customize skin functions****************************************/
static int _ProgbarSkin(const WIDGET_ITEM_DRAW_INFO *pDrawItemInfo)
{
WM_HWIN hWin;
hWin = pDrawItemInfo->hWin;
switch (pDrawItemInfo->Cmd)
{
/******************Draw the border*********************/
case WIDGET_ITEM_DRAW_FRAME:
GUI_SetBkColor(GUI_BLUE);
GUI_Clear();
break;
/****************Draw the PROGBAR COLOR*********************/
/***************I don't know how to write***********************/
}
break;
default:
return PROGBAR_DrawSkinFlex(pDrawItemInfo);
}
return 0;
}
When I was learning progress bars, I had trouble writing custom skin functions for the PROGBAR. How to write the PROGBAR color function in the custom function.
/****************Customize skin functions****************************************/
static int _ProgbarSkin(const WIDGET_ITEM_DRAW_INFO *pDrawItemInfo)
{
WM_HWIN hWin;
hWin = pDrawItemInfo->hWin;
switch (pDrawItemInfo->Cmd)
{
/******************Draw the border*********************/
case WIDGET_ITEM_DRAW_FRAME:
GUI_SetBkColor(GUI_BLUE);
GUI_Clear();
break;
/****************Draw the PROGBAR COLOR*********************/
/***************I don't know how to write***********************/
}
break;
default:
return PROGBAR_DrawSkinFlex(pDrawItemInfo);
}
return 0;
}