在左右分割视图中 怎样实现在左视图 获取右视图的指什 分割视图中 有左右两个视,LeftView,RightView 怎样实现在左视图中点一下右键,在右视图中画一个圆 要给出在左视图区 获取右视图指针的代码!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 天龙 兄:你怎么老问些这样的问题?嘻嘻----------------先获得分隔条的指针/或者分割条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 defaultCMainFrame pFrame=(CMainFrame*)AfxGetMainWnd();CRightView pView=(CRightView*)pFrame->splitter.GetPane(0,1); //use the pview to draw circle in the rightview.... CView::OnRButtonDown(nFlags, point);} 登录窗口中如何调用FormView中的函数? 浮动窗体 双击标题栏窗口最大花或者恢复原来状态,请问如何得到当前窗口内控件的大小? 关于WINDOWS的资源管理器,高手请进! 如何编程实现鼠标单击双击? 请问:怎样编写手机短信发送的组件?用什么工具啊?原理是什么呢?急!!! vs2005 mfc开发 一套代码管理多个项目 多个不同项目的资源文件 关于UNICODE的问题? 请教一个问题! vc dos system telnet 交换机 怎么让CFORMVIEW的控件在ONSIZE时随之变化.? 关于以sdk为主框架,与mfc混合编程中得到mfc控件父窗口指针的问题!
你怎么老问些这样的问题?
嘻嘻
----------------
先获得分隔条的指针/或者分割条
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);
}