小弟之前玩的是ucos_II 2.86版本,今天玩了下ucos_III,如下代码void GUI0_Task(void *p_arg)
{
p_arg = p_arg;/*为什么这里加这句就会报错?之前在ucos_II上是不会的啊,为什么啊?*/
/* create frame window */
FRAMEWIN_Handle hFrameWin = FRAMEWIN_Create("GUI0",NULL,WM_CF_SHOW | WM_CF_STAYONTOP,0,230,230,40);
/* create child window */
WM_HWIN hChildWin = WM_CreateWindowAsChild(0,0,0,0,WM_GetClientWindow(hFrameWin),WM_CF_SHOW | WM_CF_MEMDEV,_cbCallbackT1,0);
FRAMEWIN_SetActive(hFrameWin,0);
while(1)
{
int i;
int nx = 80;
int ny = 90;
for(i=0;i<ny;i++)
{
WM_MoveWindow(hFrameWin,0,-2);
GUI_Delay(10);
}
|