怎么才能将窗口分割成如下样子 Sorry!是这样的:左边一个,右边两个(分上下) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果是窗口,那就用SetWindowRgn(...),SetWindowPos(...),CalcWindow(...). //这是我左一右二(上下),参考!※BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) {// TODO: Add your specialized code here and/or call the base classCRect rect;GetClientRect(&rect);//if(!m_SplitWnd.CreateStatic(this, 1, 2)){TRACE0("Failed to CreateStaticSplitter\n");return FALSE;}if(!m_SplitWnd.CreateView(0, 0, RUNTIME_CLASS(CViewTree), CSize(rect.Width()/5, 0), pContext)){TRACE0("Failed to create first pane\n");return FALSE;}// if(!m_SplitWnd.CreateView(0, 1, RUNTIME_CLASS(CViewList), CSize(0, 0), pContext)){// TRACE0("Failed to create first pane\n");// return FALSE;// }if (!m_SplitRight.CreateStatic(&m_SplitWnd, 2, 1, WS_CHILD | WS_VISIBLE | WS_BORDER, m_SplitWnd.IdFromRowCol(0, 1) )){TRACE0("Failed to create nested splitter\n");return FALSE;}if (!m_SplitRight.CreateView(0, 0, RUNTIME_CLASS(CViewList), CSize(0,rect.Height()/2), pContext)){TRACE0("Failed to create second pane\n");return FALSE;}if (!m_SplitRight.CreateView(1, 0, RUNTIME_CLASS(CViewPropPage), CSize(0,0), pContext)){TRACE0("Failed to create third pane\n");return FALSE;}//SetActiveView((CView*)m_SplitWnd.GetPane(0,0));return TRUE;} 调用外部exe的问题 new出来的对话框不能setWindowText和ShowWindow VC连接数据库,建了个ADOConn类负责连接,求帮忙看下报错原因 如何使编辑框文字垂直居中 google浏览器和CSDN 有没有精通VC的,且想跳槽的,,, 请问达人VC7里如何设置双机调试? MFC视窗内可以实现动画效果吗? 我想做一个按件替换的东东,请问该怎么做? 我的2000的启动速度很慢? 增加一个对话框时,总会提醒你用一个类与之关联,其真正的含义是什么呢?请大伙赐教 谁能提供异步SOCKET编程的例子
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
CRect rect;
GetClientRect(&rect);
//
if(!m_SplitWnd.CreateStatic(this, 1, 2)){
TRACE0("Failed to CreateStaticSplitter\n");
return FALSE;
}
if(!m_SplitWnd.CreateView(0, 0, RUNTIME_CLASS(CViewTree), CSize(rect.Width()/5, 0), pContext)){
TRACE0("Failed to create first pane\n");
return FALSE;
}
// if(!m_SplitWnd.CreateView(0, 1, RUNTIME_CLASS(CViewList), CSize(0, 0), pContext)){
// TRACE0("Failed to create first pane\n");
// return FALSE;
// }
if (!m_SplitRight.CreateStatic(&m_SplitWnd, 2, 1, WS_CHILD | WS_VISIBLE | WS_BORDER, m_SplitWnd.IdFromRowCol(0, 1) )){
TRACE0("Failed to create nested splitter\n");
return FALSE;
}
if (!m_SplitRight.CreateView(0, 0, RUNTIME_CLASS(CViewList), CSize(0,rect.Height()/2), pContext)){
TRACE0("Failed to create second pane\n");
return FALSE;
}
if (!m_SplitRight.CreateView(1, 0, RUNTIME_CLASS(CViewPropPage), CSize(0,0), pContext)){
TRACE0("Failed to create third pane\n");
return FALSE;
}
//
SetActiveView((CView*)m_SplitWnd.GetPane(0,0));
return TRUE;
}