完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
#include "led.h"
#include "delay.h" #include "key.h" #include "sys.h" #include "tft.h" #include "usart.h" #include "gui.h" #include "math.h" #include "includes.h" static void cbBackgroundWin(WM_MESSAGE* pMsg) { switch(pMsg->MsgId) { case WM_PAINT: GUI_Clear(); default: WM_DefaultProc(pMsg); } } static void cbForegroundWin(WM_MESSAGE* pMsg) { switch(pMsg->MsgId) { case WM_PAINT: GUI_SetBkColor(GUI_GREEN); GUI_Clear(); GUI_DispString("Foreground window"); break; default: WM_DefaultProc(pMsg); } } static void DemoRedraw(void) { GUI_HWIN hWnd; while(1) { hWnd=WM_CreateWindow(10,10,100,100,WM_CF_SHOW,cbForegroundWin,0); delay_us(1000); WM_DeleteWindow(hWnd); GUI_DispStringAt("Background of window has not been redraw",10,10); delay_us(1000); GUI_Clear; WM_SetCallback(WM_HBKWIN,cbBackgroundWin); hWnd=WM_CreateWindow(10,10,100,100,WM_CF_SHOW,cbForegroundWin,0); delay_us(1000); WM_DeleteWindow(hWnd); delay_us(1000); WM_SetCallBack(WM_HBKWIN,0); } } void main(void) { delay_init(); NVIC_Configuration(); uart_init(9600); GUI_Init(); DemoRedraw(); } 编译后出现下面的错误! Build target 'Template' compiling main.c... main.c(227): error: #20: identifier "WM_MESSAGE" is undefined main.c(229): error: #132: expression must have pointer-to-struct-or-union type main.c(231): error: #20: identifier "WM_PAINT" is undefined main.c(232): warning: #223-D: function "WM_DefaultProc" declared implicitly main.c(236): error: #20: identifier "WM_MESSAGE" is undefined main.c(238): error: #132: expression must have pointer-to-struct-or-union type main.c(240): error: #20: identifier "WM_PAINT" is undefined main.c(246): warning: #223-D: function "WM_DefaultProc" declared implicitly main.c(254): warning: #223-D: function "WM_CreateWindow" declared implicitly main.c(254): error: #20: identifier "WM_CF_SHOW" is undefined main.c(256): warning: #223-D: function "WM_DeleteWindow" declared implicitly main.c(259): warning: #174-D: expression has no effect main.c(260): warning: #223-D: function "WM_SetCallback" declared implicitly main.c(260): error: #20: identifier "WM_HBKWIN" is undefined main.c(265): warning: #223-D: function "WM_SetCallBack" declared implicitly main.c(270): warning: #951-D: return type of function "main" must be "int" Target not created 求高手帮帮忙额 ! |
|
相关推荐
6个回答
|
|
额 谢谢原子哥 我找到错误了,guiconf.h里面的那个GUI_WINSUPPORT要设置成1才行,原子哥有没有与UCGUI控件相关的一些学习资料啊 或者连接也可以的哦!跪求!
|
|
|
|
感觉你是窗体相关的.c文件没加进来似得....
|
|
|
|
好贴,我的问题解决了
|
|
|
|
请教楼主,怎么在一个窗口显示变量呢?我是要在一个FRAMEWIN窗口上显示时间,日期等信息。
用GUI_DispDecAt(calendar.hour,60,162,2); GUI_DispDecAt(calendar.min,84,162,2); GUI_DispDecAt(calendar.sec,108,162,2); 会被那个窗口覆盖掉!!! |
|
|
|
为什么我改成了 #define GUI_WINSUPPORT 1
还是有错误 main.c(105): error: #268: declaration may not appear after executable statement in block main.c(105): error: #20: identifier "PROGBAR_Handle" is undefined main.c(107): warning: #223-D: function "PROGBAR_Create" declared implicitly main.c(107): error: #20: identifier "WM_CF_SHOW" is undefined main.c(108): warning: #223-D: function "WM_Exec" declared implicitly |
|
|
|
请问你的问题解决了吗?我也遇到同样的问题
|
|
|
|
只有小组成员才能发言,加入小组>>
684 浏览 0 评论
1100 浏览 1 评论
2465 浏览 5 评论
2799 浏览 9 评论
移植了freeRTOS到STMf103之后显示没有定义的原因?
2638 浏览 6 评论
使用eim外接fpga可是端口一点反应都没有有没有大哥指点一下啊
649浏览 9评论
645浏览 7评论
请教大神怎样去解决iMX6Q在linux3.0.35内核上做AP失败的问题呢
776浏览 6评论
620浏览 5评论
662浏览 5评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-19 17:48 , Processed in 1.207293 second(s), Total 90, Slave 71 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号