by david » Fri Jul 29, 2011 9:51 pm
window A,B,C have ws_popup style.
--------------------------------
Figure 1 environment
current zorder : A > B > C
current activated window : A
A has a focus.
---------------------------------
A is the working window of some task.
User just wants to see information in C as a bakground window without activation , wants to keep the focus in A , and wants to keep zorder of windows.
In Figure 1 environment, Programatically A send a navigation command to C' cef embed to show information related with data in A.
C' cef embed navigated and it's implementation makes C window activate and be top zorder.
eventually C takes the focus that A had.
but user want to keep input focus in A.
See Figure 2.
---------------------------------
Figure 2 environment
current zorder: C > A > B
current activated window : C
C has a focus.
---------------------------------
CEF embed window is like a control.
control is used in various enviroments.
control' behavior must be predictable.
so, CEF embed window should have the ability that programatically prevent activation and zoder change of container window ( C widnow) by optional on/off flag.
ex)
when call setwindowpos , it check the option.
if activation,zorder option is off, call setwindowpos with SWP_NOACTIVATE , SWP_NOZORDER
- Attachments
-
- figure
- 1.jpg (77.65 KiB) Viewed 10599 times