|
楼主 |
发表于 2013-12-14 11:27:44
|
显示全部楼层
回 eric2013 的帖子
eric2013:你看看你那里能不能分批更新,不要整体更新 (2013-12-13 21:18) case WM_INIT_DIALOG:
不加这句就不闪,一加这句按钮就闪起来了,但我不加这句话窗口颜色不协调,不好看,都是用对话框写的 。
WINDOW_SetBkColor(pMsg->hWin, GUI_BLUE);//窗口蓝色
hItem=WM_GetDialogItem(pMsg->hWin, ID_BUTTON_0);
BUTTON_SetSkin(hItem, BUTTON_SKIN_FLEX); // Sets the skin for the given widget
//BUTTON_SetDefaultSkin(BUTTON_SKIN_FLEX); // Sets the default skin for new widgets
hItem=WM_GetDialogItem(pMsg->hWin, ID_BUTTON_1);
BUTTON_SetSkin(hItem, BUTTON_SKIN_FLEX); // Sets the skin for the given widget
//BUTTON_SetDefaultSkin(BUTTON_SKIN_FLEX); // Sets the default skin for new widgets
break; |
|