我去minigui官网下载了minigui的官方demo并移植成功,现在程序进入子应用返回不了主菜单,我添加了返回,但是一返回整个进程都死了;请各位大神帮忙解答!
mginit.c
static int my_event_hook (PMSG msg)
{
FUN_START ();
if((msg->message >= MSG_FIRSTMOUSEMSG && msg->message <= MSG_LASTMOUSEMSG) || (msg->message >= MSG_FIRSTKEYMSG && msg->message <= MSG_LASTKEYMSG))
{
ResetScreenSaver();
StopScreenSaver();
}
if (msg->message == MSG_KEYUP) {
if(msg->wParam == SCANCODE_F4)
SendMessage(hSoftKeypad, MSG_IME_CLOSE, 1, 0);
GUIWinProc(msg->hwnd,msg->message,msg->wParam,msg->lParam);
}
#if 0
if(msg->message==MSG_LBUTTONUP) {
int x, y;
x = LOWORD (msg->lParam);
y = HIWORD (msg->lParam);
printf("[qdg]: x=%d,y=%d\n",x,y);
if(x>=0 &&x<= 40 &&y>=0&&y<=60)
{
SENCE * s = GetSenceById(SENCE_DESKTOP);
if(s !=g_curSence)
{
//message = MSG_KEYUP;
//wParam = SCANCODE_F4;
printf("[qdg]: close app winow!!!\n");
//SendMessage(hSoftKeypad, MSG_IME_CLOSE, 1, 0);
//GUIWinProc(msg->hwnd,message,wParam,msg->lParam);
// exec_app ("./mginit","./mginit"); //qdg add 2018-6-25
SetCurrentSence(SENCE_DESKTOP);
}
}
}
#endif
FUN_END();
return HOOK_GOON;
}