emwin window manager

emwin window manager

hWinBase = WM_CreateWindow(0,  0, 480, 320, WM_CF_SHOW, _cbBaseView, 0);

hWinKey = WM_CreateWindowAsChild(0, 0, 378, 266,  hWinBase , WM_CF_SHOW, _cbKeyView, 0);

Create a master interface hWinBase, create a sub-interface hWinKey its parent interface

When the parent interface using the countdown timer to make use, based on the timer setting, periodically refresh the main interface, sub-interface flash back easily lead to the occurrence of instability, confusion and so on.

Create a direct interface

hWinKey = WM_CreateWindow(0, 0, 378, 266,  WM_CF_SHOW, _cbKeyView, 0);

It will not lead to such a result.

Guess you like

Origin www.cnblogs.com/ys77/p/11528210.html