Parent window not on the top
-
I have a dialog, which starts modeless subdialogs. They run nicely, but they always stay on top of the parent, even when the parent has the focus (I can type in data in a control of the parent window, if I move the child enough to the side). I trapped WM_ACTIVATE and issued SetWindowsPost(&wndTop...). This gets the control and works almost well (it moves the window If I want to), but it still remains under the children. What else do I have to do in order to win over the children?
-
I have a dialog, which starts modeless subdialogs. They run nicely, but they always stay on top of the parent, even when the parent has the focus (I can type in data in a control of the parent window, if I move the child enough to the side). I trapped WM_ACTIVATE and issued SetWindowsPost(&wndTop...). This gets the control and works almost well (it moves the window If I want to), but it still remains under the children. What else do I have to do in order to win over the children?
Make the subdialogs parent while creating them as the desktop window by calling GetDesktopWindow() i guess that should fix the problem.
-prakash
-
Make the subdialogs parent while creating them as the desktop window by calling GetDesktopWindow() i guess that should fix the problem.
-prakash
-
That works well (although I wanted to avoid seeing the subdialogs on the task bar, but I can solve that otherwise). Thanks you. I wanted to rate your response, and accidentally clicked on "1". Sorry for that.
"I wanted to rate your response, and accidentally clicked on "1". Sorry for that." nevermind.
-prakash