在左右分割视图中 怎样实现在左视图 获取右视图的指什
分割视图中 有左右两个视,LeftView,RightView
怎样实现在左视图中点一下右键,在右视图中画一个圆
要给出在左视图区 获取右视图指针的代码!!
问题点数:60、回复次数:3Top
1 楼psusong(栀子花开)回复于 2002-11-03 15:12:04 得分 60
天龙 兄:
你怎么老问些这样的问题?
嘻嘻
----------------
先获得分隔条的指针/或者分割条
CMainFrame
{
public:
CSplitterWnd splitter;
}
假设你在BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
splitter.Create......
}
中分割!
#include "MainFrm.h"
....
void CLeftView::OnRButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CMainFrame pFrame=(CMainFrame*)AfxGetMainWnd();
CRightView pView=(CRightView*)pFrame->splitter.GetPane(0,1);
//use the pview to draw circle in the rightview
....
CView::OnRButtonDown(nFlags, point);
}
Top
2 楼uuwcl(小吴)回复于 2002-11-03 15:22:54 得分 0
谢了Top
3 楼oubrother(yangou)回复于 2002-11-05 11:11:23 得分 0
splitter.Create中参数怎么定?Top




