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.
This commit is contained in:
parent
be0dc7e2cb
commit
5dbe090098
@ -559,10 +559,6 @@ public:
|
|||||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
hParentWindow, NULL, NULL, NULL));
|
hParentWindow, NULL, NULL, NULL));
|
||||||
sscheck(SetWindowLongPtr(hWindow, 0, (LONG_PTR)this));
|
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,
|
sscheck(hTooltip = CreateWindowExW(0, TOOLTIPS_CLASS, NULL,
|
||||||
WS_POPUP|TTS_NOPREFIX|TTS_ALWAYSTIP,
|
WS_POPUP|TTS_NOPREFIX|TTS_ALWAYSTIP,
|
||||||
|
Loading…
Reference in New Issue
Block a user