如何在CDockablePane中显示我做好了的一个dialog
我也遇到这样的问题,我看到http://topic.csdn.net/u/20090611/10/d82d1642-53e1-4c40-a8c3-27fdb959ef27.html#r_achor有人谈到此问题的解决方法,可是我是新手,我的代码如下:
CDialog* pdlg = new CDialog;
pdlg->Create(IDD_HISTORY_DIALOG, &m_wndFileView);
pdlg->ShowWindow(SW_SHOW);
if (CDockablePane::OnCreate(lpCreateStruct) == -1)
return -1;
//
CRect rectDummy;
rectDummy.SetRectEmpty();
// Create view:
const DWORD dwViewStyle = WS_CHILD | WS_VISIBLE | TVS_HASLINES | TVS_LINESATROOT | TVS_HASBUTTONS;
if (!m_wndFileView.Create(dwViewStyle, rectDummy, this, 4))
{
TRACE0("Failed to create file view\n");
return -1; // fail to create
}
为什么我的这个dialog是弹出对话框的模式显示在那里呢,我要他显示在我的DockablePane里面啊。
请高手指点!