regedit: implement View|Split
Dimitrie O. Paun
dpaun at rogers.com
Tue Jan 13 23:59:39 CST 2004
This is from ReactOS tree.
ChangeLog
weiden at mok.lvcm.com
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.
More information about the wine-patches
mailing list