HI Schoenen,
i'm working on segger application, where i have 25-30 screen(windows) in my application. as i have more screens, memory conception is also more on Flash and RAM. so i have found the
WM_DeleteWindow(pMsg->hWin); function to delete window before navigating to other screen. but as i move on and update parameters values on run time, i have used child windows as pop-up and keypad-numeric screens.
example:
case ID_BUTTON_0: // Notifications sent by 'Button'
switch(NCode) {
case WM_NOTIFICATION_CLICKED:
// USER START (Optionally insert code for reacting on notification message)
if(Close_Button)
{
WM_DeleteWindow(pMsg->hWin);
CreateMainWindow();
}// USER END
break;
case WM_NOTIFICATION_RELEASED:
// USER START (Optionally insert code for reacting on notification message)
// USER END
break;
// USER START (Optionally insert additional code for further notification handling)
// USER END
}
after having child windows, on open and close of child windows at 10+ instances i found that my parent screen icons are getting hided.
now my questions is How to delete window and where to call WM_DeleteWindow(); function with what input. please let me know if any inputs needs to be added from my side.
Thanks in advance.
Regards
Krishna [img]https://forum.segger.com/wcf/images/smilies/smile.png[/img]
i'm working on segger application, where i have 25-30 screen(windows) in my application. as i have more screens, memory conception is also more on Flash and RAM. so i have found the
WM_DeleteWindow(pMsg->hWin); function to delete window before navigating to other screen. but as i move on and update parameters values on run time, i have used child windows as pop-up and keypad-numeric screens.
example:
case ID_BUTTON_0: // Notifications sent by 'Button'
switch(NCode) {
case WM_NOTIFICATION_CLICKED:
// USER START (Optionally insert code for reacting on notification message)
if(Close_Button)
{
WM_DeleteWindow(pMsg->hWin);
CreateMainWindow();
}// USER END
break;
case WM_NOTIFICATION_RELEASED:
// USER START (Optionally insert code for reacting on notification message)
// USER END
break;
// USER START (Optionally insert additional code for further notification handling)
// USER END
}
after having child windows, on open and close of child windows at 10+ instances i found that my parent screen icons are getting hided.
now my questions is How to delete window and where to call WM_DeleteWindow(); function with what input. please let me know if any inputs needs to be added from my side.
Thanks in advance.
Regards
Krishna [img]https://forum.segger.com/wcf/images/smilies/smile.png[/img]