mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Fix #25833: The correct way to disable top-most state is with HWND_NOTOPMOST, not HWND_TOP.
This commit is contained in:
parent
be00247ca0
commit
1e5407a9ba
@ -681,7 +681,7 @@ void cvSetPropTopmost_W32(const char* name, const bool topmost)
|
|||||||
|
|
||||||
static bool setPropTopmost_(CvWindow& window, bool topmost)
|
static bool setPropTopmost_(CvWindow& window, bool topmost)
|
||||||
{
|
{
|
||||||
HWND flag = topmost ? HWND_TOPMOST : HWND_TOP;
|
HWND flag = topmost ? HWND_TOPMOST : HWND_NOTOPMOST;
|
||||||
BOOL success = SetWindowPos(window.frame, flag, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
BOOL success = SetWindowPos(window.frame, flag, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
||||||
|
|
||||||
if (!success)
|
if (!success)
|
||||||
|
Loading…
Reference in New Issue
Block a user