2014-06-24 07:36 AM
Hello everybody.
I have a problem with emWin library. I created 2 windows. At the first windows I have a button to switch to the another window. I use WM_SetFocus(win2) to switch. It working well. But when I want to switch back, it doesn'-t work. The display show the second window always.2014-06-26 06:26 AM
What do you call to switch it back?
If you call WM_SetFocus(win1), are you sure the win1 holds the correct handle?2014-06-26 01:40 PM
I checked and the handle is wrong.
So the program. I create 2 window with GUI builder, so the 2 window is a Dialog. A call CreateWin1 and I get the handler number 3 back. When I call WM_GetFocussed or WM_GetActiveWindow function, they return with handler number 2. I dont know why. So this was the problem.