I adjusted the style to be:
1 2 3 4 5 6
|
WS_CHILD |
WS_CAPTION |
WS_SYSMENU |
WS_THICKFRAME |
WS_MINIMIZEBOX |
WS_MAXIMIZEBOX)
|
However, each one of those bits are reflected perfectly to the child window. I tested them after your notation.
Regarding
BringWindowToTop, I tried it and it worked but I am still facing problems. The 2 windows are still over-ridding each others.
In this regards, after I moved wnd2 to top of z-order, I pressed on the wnd1 (window not on the top of z-order) and I noticed the below:
1- The window does not become activated although the window procedure is processing the messages
2- I press on the control (Edit for example) in wnd1, the focus is set and cursor is set to that edit control, but still the window is not activated and not moved to front.
There is something wrong in processing the messages because the DefaultProcedure of the windows and controls are not working properly.
For sure, there is a way that when a window is activated, it will:
1- moved to top of z-order (over rid all other windows)
2- gain focus
3- get the cursor
Sorry for the mess in my update and thanks in advance for your support.
Regards,
Ahmad