|
EDA365欢迎您!
您需要 登录 才可以下载或查看,没有帐号?注册
x
#include "..\GUIinc\GUI.h"
#include "..\GUIinc\PROGBAR.h"
#include "..\GUIinc\LISTBOX.h"
#include "..\GUIinc\FRAMEWIN.h"
#include "..\GUIinc\BUTTON.h"
extern void GUI_page2(void);
int i;
static FRAMEWIN_Handle _ahFrameWin;
static PROGBAR_Handle MainProgBar;
void GUI_main(void)
{
int xCenter = LCD_GET_XSIZE() / 2;
char acText[15] = "KZQ-6?ì2aò?";
GUI_SetBkColor(GUI_BLUE); //Set the current background color.
GUI_SetFont(&GUI_FontHZ_b_43); //Sets the current font.
GUI_SetColor(GUI_BLACK); //Set the current foreground color
GUI_Clear();
GUI_DispStringHCenterAt(acText, xCenter, 26);
GUI_SetFont(&GUI_FontHZ_b_21);
GUI_SetColor(GUI_BLACK);
GUI_DispStringHCenterAt("?÷°2o£", LCD_GET_XSIZE() / 2, 190);
GUI_SetFont(&GUI_FontHZ_c_16);
GUI_SetColor(GUI_RED);
GUI_DispStringHCenterAt("?μí3×??ì2a?D...", LCD_GET_XSIZE() / 2,150);
MainProgBar=PROGBAR_CreateAsChild (97, 115,130,18, _ahFrameWin, 0,WM_CF_SHOW );
for (i = 0; i <= 100; i++)
{
PROGBAR_SetValue(MainProgBar, i);
GUI_Delay(50);
}
PROGBAR_Delete(MainProgBar);
GUI_Delay(5000);
}
为什么倒数第二句进度条删不掉
|
|