regedit: implement View|Split

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is from ReactOS tree.

ChangeLog
    weiden@xxxxxxxxxxxx
    Implement View|Split in regedit.

Index: programs/regedit/framewnd.c
===================================================================
RCS file: /var/cvs/wine/programs/regedit/framewnd.c,v
retrieving revision 1.9
diff -u -r1.9 framewnd.c
--- programs/regedit/framewnd.c	13 Jan 2004 23:18:12 -0000	1.9
+++ programs/regedit/framewnd.c	14 Jan 2004 05:56:53 -0000
@@ -518,6 +518,20 @@
     case ID_HELP_ABOUT:
         ShowAboutBox(hWnd);
         break;
+    case ID_VIEW_SPLIT: {
+        RECT rt;
+        POINT pt, pts;
+        GetClientRect(g_pChildWnd->hWnd, &rt);
+        pt.x = rt.left + g_pChildWnd->nSplitPos;
+        pt.y = (rt.bottom / 2);
+        pts = pt;
+        if(ClientToScreen(g_pChildWnd->hWnd, &pts)) {
+            SetCursorPos(pts.x, pts.y);
+            SetCursor(LoadCursor(0, IDC_SIZEWE));
+            SendMessage(g_pChildWnd->hWnd, WM_LBUTTONDOWN, 0, MAKELPARAM(pt.x, pt.y));
+        }
+        return TRUE;
+    }
     default:
         result = FALSE;
     }


-- 
Dimi.



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux