Original Attachment has been moved to: Button_AdvancedSettings64x64.c.zip
Original Attachment has been moved to: WindowDLG.c.zip
#define GUI_INVALID_COLOR0xFFFFFFF /* Invalid color - more than 24 bits */ ... GUI_Init(); BUTTON_SetDefaultSkin(Custom_BUTTON_DrawSkinFlex); ... static int Custom_BUTTON_DrawSkinFlex(const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo) { switch (pDrawItemInfo->Cmd) { case WIDGET_ITEM_DRAW_BACKGROUND: { GUI_COLOR background = BUTTON_GetBkColor(pDrawItemInfo->hWin, BUTTON_CI_UNPRESSED); if (background != GUI_INVALID_COLOR) { return BUTTON_DrawSkinFlex(pDrawItemInfo); } break; } default: return BUTTON_DrawSkinFlex(pDrawItemInfo); } return 0; } |