Developing for WM 6, I set CreateWindow to window with hWndParent which I want to be the owner. I do not set the WS_CHILD style, but the window created becomes a hair window. What is the right way to do this?
This behavior is mentioned for WinWind 1.0 for CreateWindow:
Windows CE 1.0 does not support proprietary windows except dialog boxes. If the hwndParent parameter is not faucet, the window is given on the WS_CHILD style inherently. Or, perhaps, all MSDN WinCE documents are incorrect when it says that CreateWindow creates a window of ownership and the meaning of Hans Pacent's comment means, as Hans Pacent commented on. Is the CreateDialog * function ending, as is the comment of Hans Paccent?
The proper way to do this is to give WS_POPUP style to the window, as in Microsoft's document WinCE 3.0 is outlined for:
When you create a window with the WS_POPUP style, you can create a master / owned window relationship between top-level windows. Because there are no parent windows in the top-level window, when you call the word-window function, the window that you specify as the parent window, the owner of the new window becomes a window.
Comments
Post a Comment