我用hWin = GUI_CreateDialogBox(_aDialogCreateMain, GUI_COUNTOF(_aDialogCreateMain), _cbCallback, 0, 0, 0)创建一个对话框。
对话框资源:
static const GUI_WIDGET_CREATE_INFO _aDialogCreateMain[] = {
{ FRAMEWIN_CreateIndirect, "Current Time", 0, 0, 0, 320, 240 , 0},
{ BUTTON_CreateIndirect, "Begin", GUI_KEY_F1, 0, 188, 64, 40,0,0},
{ BUTTON_CreateIndirect, "Stop", GUI_KEY_F2, 64, 188, 64, 40,0,0},
{ BUTTON_CreateIndirect, "Left", GUI_KEY_F3, 128, 188, 64, 40,0,0},
{ BUTTON_CreateIndirect, "Right", GUI_KEY_F4, 192, 188, 64, 40,0,0},
{ BUTTON_CreateIndirect, "OK", GUI_KEY_F5, 256, 188, 64, 40,0,0},
};
在回调函数中调用GUI_DispStringAt("Begin Model",120,40),但是在界面上显示不了。
我实验了,好像是{ FRAMEWIN_CreateIndirect, "Current Time", 0, 0, 0, 320, 240 , 0}创建的窗口覆盖了,怎么解决这个问题,求高手指点!
拜谢! |