Vance Kessler
asked on
CWnd::CreateEx on NT
My application creates sub-windows that can be moved outside of the
parent's frame. I have to use CreateEx() to do this. This works under
Win95 but fails in NT. I do not want these windows to appear in the
TaskBar. So, I create a hidden window like this:
m_HiddenWnd.CreateEx(0, "SubWnd", "", WS_CHILD|WS_POPUP,
0, 0, 1, 1, NULL, (HMENU)1);
The variable m_HiddenWnd is a CWnd. Then I create the real window with
this as its parent. The problem is the combination of WS_CHILD and
WS_POPUP. The docs say you can't use these together. However, if I
remove either of them the window fails to create. But, on NT this fails
no matter what I do!!!! What is the minimum I have to do to create a
window that is not owned by the MainFrame on both NT and 95?
parent's frame. I have to use CreateEx() to do this. This works under
Win95 but fails in NT. I do not want these windows to appear in the
TaskBar. So, I create a hidden window like this:
m_HiddenWnd.CreateEx(0, "SubWnd", "", WS_CHILD|WS_POPUP,
0, 0, 1, 1, NULL, (HMENU)1);
The variable m_HiddenWnd is a CWnd. Then I create the real window with
this as its parent. The problem is the combination of WS_CHILD and
WS_POPUP. The docs say you can't use these together. However, if I
remove either of them the window fails to create. But, on NT this fails
no matter what I do!!!! What is the minimum I have to do to create a
window that is not owned by the MainFrame on both NT and 95?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.