Hi,
I have a doubt on how WM_SetDesktopColor works.I am using this API to clear the background but untill unless you call GUI_Exec right after that it will not work as expected.
I am calling WM_SetDesktopColor after deleting 1 window and before creating the other one. but i have to call GUI_Exec() just after this function to clear the background.
if i am calling this way its not working
GUI_EndDialog(hwin,DIALOG_RETURN_VAL);
WM_SetDesktopColor(GUI_BLACK);
GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, WM_HBKWIN, 0, 0);
GUI_Exec();
But is working this way
GUI_EndDialog(hwin,DIALOG_RETURN_VAL);
WM_SetDesktopColor(GUI_BLACK);
GUI_Exec();
GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, WM_HBKWIN, 0, 0);
Please clarify. If behavior is like this then we will end up in having so many GUI_Exec(), which is not correct.
I have a doubt on how WM_SetDesktopColor works.I am using this API to clear the background but untill unless you call GUI_Exec right after that it will not work as expected.
I am calling WM_SetDesktopColor after deleting 1 window and before creating the other one. but i have to call GUI_Exec() just after this function to clear the background.
if i am calling this way its not working
GUI_EndDialog(hwin,DIALOG_RETURN_VAL);
WM_SetDesktopColor(GUI_BLACK);
GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, WM_HBKWIN, 0, 0);
GUI_Exec();
But is working this way
GUI_EndDialog(hwin,DIALOG_RETURN_VAL);
WM_SetDesktopColor(GUI_BLACK);
GUI_Exec();
GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, WM_HBKWIN, 0, 0);
Please clarify. If behavior is like this then we will end up in having so many GUI_Exec(), which is not correct.