Active window on top
Posted on 1999-07-23
This shouldn't be too hard, but it's annoying me.
I have an application window that creates another window at startup. (It's a button now, but it could be any control in which I can show a video.) This all works fine, but the child window (tstApp) is always overlapping the app window (main), even if it doesn't have the focus.
How can I make it such that the active window (having the focus) is on top?
HWND tstApp = CreateWindow("BUTTON", "VideoForm", WS_OVERLAPPEDWINDOW, 200, 20, 640, 480, h, 0, tstInst, 0);