c - How to let the parent window of a child window (a.k.a. owned window) stay active with winapi? -
I am writing a small application using WinAPi. There I have a window with a hair window (toolbox). I am able to keep it inside this window and so on, but my question is how to keep the main window active, if the child is window-oriented?
The main window is grayed out at this time.
The windows are created by:
hMainWindow = dialog box (.......); HChildWindow = CreateDialogParam (..., hMainWindow, ...); ShowWindow (hChildWindow, SW_SHOW); Here is a small image of the behavior of two windows:
I've found that just create it as WS_CHILD and obviously WS_POPUP as no resolves it, it also changes the full window coordinates for relative people so that I can position the window Do not take care to move again in the parent window // Resolve
Comments
Post a Comment