http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8461c77
)
Implemented View|Split.
author
Thomas Weidenmueller
<info@w3seek.de>
Fri, 16 Jan 2004 01:59:05 +0000
(
01:59
+0000)
committer
Alexandre Julliard
<julliard@winehq.org>
Fri, 16 Jan 2004 01:59:05 +0000
(
01:59
+0000)
programs/regedit/framewnd.c
patch
|
blob
|
blame
|
history
diff --git
a/programs/regedit/framewnd.c
b/programs/regedit/framewnd.c
index d76415d5bb32731eff9b46e5bcb105224f131e0a..0c75acc98ea4d1deacd9741f6177790830d1f54a 100644
(file)
--- a/
programs/regedit/framewnd.c
+++ b/
programs/regedit/framewnd.c
@@
-518,6
+518,20
@@
static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
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;
}