高中生
最后登录1970-1-1
在线时间 小时
注册时间2015-6-19
|
void MY_GUI(void)
{
OS_ERR err;
FRAMEWIN_Handle hWinVideo;
BUTTON_Handle hBut;
WM_HWIN hText;
WM_SetCallback(WM_HBKWIN, 0);//??????{??,??????}
hText = TEXT_CreateEx(240, 85, 80, 26, WM_HBKWIN, WM_CF_SHOW, 0, GUI_ID_TEXT0, "The client\nwindow is");
TEXT_SetTextColor(hText, GUI_WHITE);
hText = TEXT_CreateEx(240, 111, 80, 26, WM_HBKWIN, WM_CF_SHOW, 0, GUI_ID_TEXT1, NULL);
TEXT_SetTextColor(hText, GUI_WHITE);
/* Create buttons */
hBut = BUTTON_CreateEx(240, 5, 75, 18, WM_HBKWIN, WM_CF_SHOW, 0, GUI_ID_BUTTON0);
BUTTON_SetText(hBut, "Create win");
hBut = BUTTON_CreateEx(240, 25, 75, 18, WM_HBKWIN, WM_CF_SHOW, 0, GUI_ID_BUTTON1);
BUTTON_SetText(hBut, "Delete win");
hBut = BUTTON_CreateEx(240, 45, 75, 18, WM_HBKWIN, WM_CF_SHOW, 0, GUI_ID_BUTTON2);
BUTTON_SetText(hBut, "Show win");
hBut = BUTTON_CreateEx(240, 65, 75, 18, WM_HBKWIN, WM_CF_SHOW, 0, GUI_ID_BUTTON3);
BUTTON_SetText(hBut, "Hide win");
/* Create framewin video */
hWinVideo = FRAMEWIN_CreateEx(5, 5, 170, 120, 0, WM_CF_SHOW, FRAMEWIN_CF_MOVEABLE, 0, "Video window", 0);
FRAMEWIN_SetClientColor(hWinVideo, GUI_RED);
/* Create test windows */
// _CreateWindow();
// _CreateWindow();
// _CreateWindow();
while(1)
{
OSTimeDlyHMSM(0, 0,0,500,OS_OPT_TIME_HMSM_STRICT,&err);
}
}
以上是代码,为什么没有显示?纠结一天了。。。求大神帮助
|
|