大学生
最后登录1970-1-1
在线时间 小时
注册时间2015-1-21
|
火哥,不好意思,还要打搅你,我在装载了uCOS-III系统使用emWin先创建一个窗口(是使用WM_CreateWindowAsChild()创建的),然后再向这窗口中添加四个按键,为什么按键显示不出来的呢????代码如下,请问是什么问题呢???谢谢!
BUTTON_SetDefaultSkin(BUTTON_SKIN_FLEX);
Buttom_Status = WM_CreateWindowAsChild(
0, //窗口位置、大小
200,
320,
40,
WM_HBKWIN, |WM_CF_SHOW|WM_CF_FGND, _cbStatusWin, 0
);
hButton = BUTTON_CreateEx(0, 200, 80, 40, Buttom_Status, WM_CF_SHOW,0,GUI_ID_BUTTON0);
BUTTON_SetText(hButton,"Machine");
hButton_1 = BUTTON_CreateEx(80, 200, 80, 40, Buttom_Status, WM_CF_SHOW,0,GUI_ID_BUTTON1);
BUTTON_SetText(hButton_1, "Relative");
hButton_2 = BUTTON_CreateEx(160, 200, 80, 40, Buttom_Status, WM_CF_SHOW,0,GUI_ID_BUTTON2);
BUTTON_SetText(hButton_2, "Absolute");
hButton_3 = BUTTON_CreateEx(240, 200, 80, 40, Buttom_Status, WM_CF_SHOW,0,GUI_ID_BUTTON3);
BUTTON_SetText(hButton_3, "Setup");
|
|