[ros-diffs] [mf] 21011: Work around for ROS to display the Explorer Rebar control

mf at svn.reactos.org mf at svn.reactos.org
Tue Jan 24 21:05:54 CET 2006


Work around for ROS to display the Explorer Rebar control
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-24 06:02:32 UTC (rev 21010)
+++ trunk/reactos/subsys/system/explorer/shell/mainframe.cpp
2006-01-24 20:05:50 UTC (rev 21011)
@@ -298,9 +298,14 @@

 	  case WM_DESTROY:
 		break;
 
-      case WM_SIZE:
+	  case WM_SIZE:
+#ifdef _ROS_	///@todo Work around to display rebar in ROS (with
flickering) as long as the control isn't fixed
+		int height = SendMessage(_hwndrebar, RB_GETBARHEIGHT, 0,
0);
+		MoveWindow(_hwndrebar, 0, 0, LOWORD(lparam), height,
TRUE);
+#else
 		resize_frame(LOWORD(lparam), HIWORD(lparam));
-        break;	// do not pass message to DefFrameProc
+#endif
+		break;	// do not pass message to DefFrameProc
 
 	  case WM_GETMINMAXINFO: {
 		LPMINMAXINFO lpmmi = (LPMINMAXINFO)lparam;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20060124/e115f804/attachment.html


More information about the Ros-diffs mailing list