Код
extern "C" void MainTask(void)
{
GUI_Init();
GUI_WIDGET_CREATE_INFO createInfo[] =
{
{FRAMEWIN_CreateIndirect, "Dialog", GUI_ID_HELP, 0, 0, 128, 64},
{BUTTON_CreateIndirect, "OK", GUI_ID_OK, 80, 30, 40, 15}
};
WM_HMEM dialog = GUI_CreateDialogBox(createInfo, GUI_COUNTOF(createInfo), 0, 0, 0, 0);
FRAMEWIN_Handle framewin = WM_GetDialogItem(dialog, GUI_ID_HELP);
BUTTON_Handle button = WM_GetDialogItem(dialog, GUI_ID_OK);
FRAMEWIN_SetText(framewin, "2222");
BUTTON_SetText(button, "1111");
while(1)
{
WM_Exec();
}
}
{
GUI_Init();
GUI_WIDGET_CREATE_INFO createInfo[] =
{
{FRAMEWIN_CreateIndirect, "Dialog", GUI_ID_HELP, 0, 0, 128, 64},
{BUTTON_CreateIndirect, "OK", GUI_ID_OK, 80, 30, 40, 15}
};
WM_HMEM dialog = GUI_CreateDialogBox(createInfo, GUI_COUNTOF(createInfo), 0, 0, 0, 0);
FRAMEWIN_Handle framewin = WM_GetDialogItem(dialog, GUI_ID_HELP);
BUTTON_Handle button = WM_GetDialogItem(dialog, GUI_ID_OK);
FRAMEWIN_SetText(framewin, "2222");
BUTTON_SetText(button, "1111");
while(1)
{
WM_Exec();
}
}