在主窗体上创建一个日历控件,怎么不能显示出来?
似乎是被视图遮住了,源代码是这样的:
OnCreate函数里面:
if (!m_wndView.Create(NULL, NULL,AFX_WS_DEFAULT_VIEW ,
CRect(0,0,0,0), this, AFX_IDW_PANE_FIRST, NULL))
{
TRACE0("Failed to create view window\n");
return -1;
}
if(!m_wndCalendar.Create(NULL,WS_CHILD | WS_VISIBLE ,CRect(0,200,250,400),this,123))
{
TRACE0("Failed to create calendar\n");
return -1;
}