如何在单文档的窗口中显示控件?
我想在单文档的窗口中显示控件,而不把它们放到对话框中,写了如下的程序,在OnDraw()中:
CRect rect;
GetClientRect(&rect);
CTabCtrl Label;
if( !Label.Create( TCS_TABS | TCS_FIXEDWIDTH | WS_VISIBLE,
rect, this, 0x1006) )
{
AfxMessageBox("Label Create Error!");
}
另外为什么msdn上写着:
virtual BOOL Create(
DWORD dwStyle,
const RECT& rect, <---- 但这不能用 &rect ,却只能用 rect ???
...);
谢谢:)