使用GUIBuilder工具创建二个窗口互调用时会闪屏,查看手册说要使用函数 WM_SetCreateFlags() 设置默认创建标记,那个是默认创建标记??
static const GUI_WIDGET_CREATE_INFO _aDialogCreate[] = {
{ WINDOW_CreateIndirect, "Window", ID_WINDOW_0, 0, 30, 320, 210, 0, 0x0, 0 },
{ BUTTON_CreateIndirect, "6_1", ID_BUTTON_0, 0, 8, 320, 50, 0, 0x0, 0 },
{ BUTTON_CreateIndirect, "6_2", ID_BUTTON_1, 0, 58, 320, 50, 0, 0x0, 0 },
{ BUTTON_CreateIndirect, "6_3", ID_BUTTON_2, 0, 108, 320, 50, 0, 0x0, 0 },
{ BUTTON_CreateIndirect, "6_4", ID_BUTTON_3, 0, 158, 320, 50, 0, 0x0, 0 },
// USER START (Optionally insert additional widgets)
WM_HWIN GUIA6(void) {
GUIA6_hWin=GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog,GUIA1_hWin, 0, 0);
return GUIA6_hWin;
}
|