Skip to content

Commit 77c3f03

Browse files
committed
fix iconify, lower
1 parent 4892c96 commit 77c3f03

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

src/gdlwinstream.cpp

+5-13
Original file line numberDiff line numberDiff line change
@@ -413,26 +413,18 @@ bool GDLWINStream::GetWindowPosition(long& xpos, long& ypos) {
413413

414414
void GDLWINStream::Lower()
415415
{
416-
417-
SetWindowPos(GetHwnd(), HWND_BOTTOM,
418-
0,0,0,0, (SWP_NOMOVE | SWP_NOSIZE));
419-
416+
SetWindowPos(GetHwnd(), HWND_BOTTOM, 0,0,0,0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
420417
return;
421418
}
422419

423420
void GDLWINStream::Iconic() {
424-
425-
426-
SetWindowPos(GetHwnd(), HWND_BOTTOM,
427-
0,0,0,0, (SWP_NOMOVE | SWP_NOSIZE |SWP_HIDEWINDOW));
428-
return;
421+
ShowWindow(GetHwnd(), SW_SHOWMINNOACTIVE);
422+
return;
429423
}
430424

431425
void GDLWINStream::DeIconic() {
432-
433-
SetWindowPos(GetHwnd(), HWND_BOTTOM,
434-
0,0,0,0, (SWP_NOMOVE | SWP_NOSIZE |SWP_SHOWWINDOW)); return;
435-
426+
ShowWindow(GetHwnd(), SW_SHOWNOACTIVATE);
427+
return;
436428
}
437429
void GDLWINStream::CheckValid() {
438430
if(!IsWindow(GetHwnd())) this->SetValid(false);

0 commit comments

Comments
 (0)