谁有多文档切分主框架的源代码?

bjzhaoxiao 2003-07-02 11:21:33
如题。
我在CMainFram中加入CSplitterWnd m_wndSplitter;

BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if (!m_wndSplitter.CreateStatic(this, 1, 2))
return FALSE;
m_wndSplitter.CreateView(0, 1, pContext->m_pNewViewClass,
CSize(100, 100), pContext)) // 出错的地方!
}
设了断点看,原来pContext为空,我在单文档中设断点,发现pContext不为空,我想知道在多文档中什么地方对pContext做了手脚
...全文
42 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
蒋晟 2003-07-03
  • 打赏
  • 举报
回复
CREATESTRUCT
lpCreateParams
Contains additional data which may be used to create the window. If the window is being created as a result of a call to the CreateWindow or CreateWindowEx function, this member contains the value of the lpParam parameter specified in the function call.
If the window being created is an MDI window, this member contains a pointer to an MDICREATESTRUCT structure.

Windows NT/2000/XP: If the window is being created from a dialog template, this member is the address of a SHORT value that specifies the size, in bytes, of the window creation data. The value is immediately followed by the creation data. For more information, see the following Remarks section.

xundeng 2003-07-03
  • 打赏
  • 举报
回复
可是因为,视是在子框 架里的,,不是放在主框 架里的所以在主框架里没法创建视

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧