diff options
| author | Manolo Gouy <Manolo> | 2017-07-27 15:11:33 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-07-27 15:11:33 +0000 |
| commit | 7bd24a428dc3afa43347f6e8bd8bbf17f882f697 (patch) | |
| tree | 1d5481856a8c44a7ecef69c46bd40110c2512ba9 /src | |
| parent | 4a85b82ffea7d737d517c0659616582b6d26cb37 (diff) | |
IsIconic() is the adequate WINAPI function to detect a minimised window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_win32.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 10f266461..f5e064a62 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -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); |
