Creating a popup window above an another.

I have a `handle` to third party window (not created by me, retrieved using the `FindWindow` function). Now I'd kile to create a small popup style window that will ALWAYS be laid down ovev/on top of that third party window. The case is I don't wanna the popup to be always above all the system windows, but ONLY above the window that I've described so I don't wanna use the `HWND_TOPMOST` option in the `SetWindowPos` function.

How can i achieve it without using the `HWND_TOPMOST` flag?
How can i achieve it without using the `HWND_TOPMOST` flag?

3 gallons of lubricant, 20 feet of rubber tubing....

And a Yak.
1
2
3
4
5
6
7
8
9
10
11
12
13
14

LRESULT PopupWindow(HWND hwnd)
{
                                                   
    hwnd = FindWindow(NULL, L"Rekenmachine");

    HWND hWindow = ::CreateWindowEx(WS_EX_CONTROLPARENT | WS_EX_WINDOWEDGE, CWindow.RegisterClass(PopupWndProc), L"C++ Popup window",
        WS_POPUPWINDOW | WS_CAPTION | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_THICKFRAME, 200, 200, 1200, 1200, hwnd, NULL, GetModuleHandle(NULL), NULL);

    ShowWindow(hWindow, SW_NORMAL);
   
    return 0;
}
Topic archived. No new replies allowed.