- AppWizard V1.52_6.44b
I am wondering which window message is appropriate to use.
I would like to show values on Text objects every time a screen is displayed (SCREEHNSHOW job).
According to the emWin User Guide, I think WM_INIT_DIALOG may be the one to use.
6.1.6.3.5 WM_INIT_DIALOG
Is this right?
I wrote the code like this as SCREEN_01 onShow:
void cbID_SCREEN_01(WM_MESSAGE * pMsg) {
GUI_USE_PARA(pMsg);
switch (pMsg->MsgId) {
case WM_INIT_DIALOG:
int nop = 1; // for breakpoint
break;
}
}
By checking with breakpoint, it seems that I can do what I would like to do.
If I make mistakes, I would like to know other ways.