Implemented View|Split.
This commit is contained in:
parent
8461c77082
commit
d0d8b5bfb1
|
@ -518,6 +518,20 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
case ID_HELP_ABOUT:
|
case ID_HELP_ABOUT:
|
||||||
ShowAboutBox(hWnd);
|
ShowAboutBox(hWnd);
|
||||||
break;
|
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:
|
default:
|
||||||
result = FALSE;
|
result = FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue