询问者
CTabView的困惑

问题
全部回复
-
Hi handsome031,
根据你的描述,你可以参照以下样例实现:
Sample codes:
int CTabViewXP::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CView::OnCreate(lpCreateStruct) == -1) return -1; CRect rectDummy; rectDummy.SetRectEmpty (); // Create tabs window: if (!m_wndTabs.Create ( IsScrollBar () ? CBCGPTabWnd::STYLE_3D_SCROLLED : CBCGPTabWnd::STYLE_3D_ONENOTE , rectDummy, this, 1,CBCGPTabWnd::LOCATION_TOP )) { TRACE0("Failed to create tab window\n"); return -1; // fail to create } m_wndTabs.SetFlatFrame (); m_wndTabs.SetTabBorderSize (0); m_wndTabs.AutoDestroyWindow (FALSE); return 0; }
相似的问题参考:
http://www.bcgsoft.com/cgi-bin/forum/topic.asp?TOPIC_ID=1688
Best Regards,
May
May Wang<br/> MSDN Community Support | <a href="mailto:msdnmg@microsoft.com">Feedback to us</a><br/> <a href="http://blogs.msdn.com/b/win8devsupport/"><font color="red">Develop and promote your apps in Windows Store</font></a><br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 May Wang - MSFT 2013年8月6日 9:02 格式