Re: Minimize window via style change
23 Sep
2006
23 Sep
'06
11:15 a.m.
"Sebastian Reichelt" <SebastianR(a)gmx.de> wrote:
+ if (winpos->flags & SWP_FRAMECHANGED) + { + DWORD style = GetWindowLongW( winpos->hwnd, GWL_STYLE ); + X11DRV_set_iconic_state( winpos->hwnd ); + if (style & WS_MINIMIZE) + return TRUE; + } + if (!SWP_DoWinPosChanging( winpos, &newWindowRect, &newClientRect )) return FALSE;
/* Fix redundant flags */
X11DRV_set_iconic_state() call should be moved under the 'if' case. Next, you can't really avoid calling SWP_DoWinPosChanging and probably sending WM_WINDOWPOSCHANGED. This behaviour needs a good test case. -- Dmitry.
7026
Age (days ago)
7026
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov