Hello.
I use STM32F746 Discovery with STemWin. I created Framewin and added two buttons to it. When I click the buttons I see that they react, but the message WM_NOTIFY_PARENT never comes. When I push buttons I constantly see three messages: WM_PRE_PAINT, WM_PAINT, WM_POST_PAINT.
Here is how I add buttons:
static void _cbFrame(WM_MESSAGE * pMsg) {
int Id;
int NCode;
switch (pMsg->MsgId) {
case WM_CREATE:
BUTTON_CreateEx(15, 25, 50, 50, pMsg->hWin, WM_CF_SHOW, 0, FR_BUT_0);
BUTTON_CreateEx(75, 25, 50, 50, pMsg->hWin, WM_CF_SHOW, 0, FR_BUT_1);
break;
case WM_NOTIFY_PARENT:
Id = WM_GetId(pMsg->hWinSrc);
.................
What did I do wrong?
Thanks
I use STM32F746 Discovery with STemWin. I created Framewin and added two buttons to it. When I click the buttons I see that they react, but the message WM_NOTIFY_PARENT never comes. When I push buttons I constantly see three messages: WM_PRE_PAINT, WM_PAINT, WM_POST_PAINT.
Here is how I add buttons:
static void _cbFrame(WM_MESSAGE * pMsg) {
int Id;
int NCode;
switch (pMsg->MsgId) {
case WM_CREATE:
BUTTON_CreateEx(15, 25, 50, 50, pMsg->hWin, WM_CF_SHOW, 0, FR_BUT_0);
BUTTON_CreateEx(75, 25, 50, 50, pMsg->hWin, WM_CF_SHOW, 0, FR_BUT_1);
break;
case WM_NOTIFY_PARENT:
Id = WM_GetId(pMsg->hWinSrc);
.................
What did I do wrong?
Thanks