Win32: do not insert windows with parents after HWND_TOPMOST.

It is not clear why this code was added (I don't remember) and
the normal parent-child relationship should be sufficient for
the task of keeping property browser on top of the main window.

With SetWindowPos(hwnd, HWND_TOPMOST) though, the property browser
window stays on top of *anything*, even if the user switches to
an entirely different application.
pull/420/head
whitequark 2019-05-20 22:43:29 +00:00
parent be0dc7e2cb
commit 5dbe090098
1 changed files with 0 additions and 4 deletions

View File

@ -559,10 +559,6 @@ public:
CW_USEDEFAULT, CW_USEDEFAULT,
hParentWindow, NULL, NULL, NULL));
sscheck(SetWindowLongPtr(hWindow, 0, (LONG_PTR)this));
if(hParentWindow != NULL) {
sscheck(SetWindowPos(hWindow, HWND_TOPMOST, 0, 0, 0, 0,
SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE));
}
sscheck(hTooltip = CreateWindowExW(0, TOOLTIPS_CLASS, NULL,
WS_POPUP|TTS_NOPREFIX|TTS_ALWAYSTIP,