fix flickering in toolbar when resizing the explorer window
Modified: trunk/reactos/subsys/system/explorer/shell/mainframe.cpp
_____
Modified: trunk/reactos/subsys/system/explorer/shell/mainframe.cpp
--- trunk/reactos/subsys/system/explorer/shell/mainframe.cpp
2006-01-23 18:46:45 UTC (rev 21003)
+++ trunk/reactos/subsys/system/explorer/shell/mainframe.cpp
2006-01-23 19:36:59 UTC (rev 21004)
@@ -283,8 +283,7 @@
return true;
case WM_SHOWWINDOW:
- if (wparam) // trigger child resizing after window
creation - now we can succesfully call IsWindowVisible()
- {
+ if (wparam) { // trigger child resizing after window
creation - now we can succesfully call IsWindowVisible()
int height = SendMessage(_hwndrebar, RB_GETBARHEIGHT, 0,
0);
MoveWindow(_hwndrebar, 0, 0, LOWORD(lparam), height,
TRUE);
resize_frame_client();
@@ -299,13 +298,10 @@
case WM_DESTROY:
break;
- case WM_SIZE:{
- int height = SendMessage(_hwndrebar, RB_GETBARHEIGHT, 0, 0);
- MoveWindow(_hwndrebar, 0, 0, LOWORD(lparam), height,
TRUE);
+ case WM_SIZE:
+ resize_frame(LOWORD(lparam), HIWORD(lparam));
+ break; // do not pass message to DefFrameProc
- //resize_frame(LOWORD(lparam), HIWORD(lparam));
- break;} // do not pass message to DefFrameProc
-
case WM_GETMINMAXINFO: {
LPMINMAXINFO lpmmi = (LPMINMAXINFO)lparam;