Skip to content

Commit

Permalink
IsIconic() is the adequate WINAPI function to detect a minimised window.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Jul 27, 2017
1 parent 4a85b82 commit 7bd24a4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Fl_win32.cxx
Expand Up @@ -1451,13 +1451,12 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
break;

case WM_MOVE: {
if (IsIconic(hWnd)) {
break;
}
resize_bug_fix = window;
int nx = LOWORD(lParam);
int ny = HIWORD(lParam);
bool iconized = (nx >= 0x8000 && ny >= 0x8000);
if (iconized) {
break;
}
if (nx & 0x8000) nx -= 65536;
if (ny & 0x8000) ny -= 65536;
//fprintf(LOG,"WM_MOVE position(%d,%d) s=%.2f\n",int(nx/scale),int(ny/scale),scale);
Expand Down

0 comments on commit 7bd24a4

Please sign in to comment.