TabCtrl...How do you create tab at the bottom
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: TabCtrl...How do you create tab at the bottom

  1. #1
    Join Date
    Sep 2002
    Posts
    206

    TabCtrl...How do you create tab at the bottom

    Hi,

    I need to create a tab ctrl dialog with the tabs at the bottom instead at the top (default setting).

    How can I do this?

    Thanks,

    Rage

  2. #2
    Join Date
    Sep 2002
    Posts
    206
    Hi,

    I added the TCS_BOTTOM to the create call. The tab does appear at the bottom, button they can not been seen. Here is the code


    m_pcImageTabCtrl = new CDCLImageTab(this,
    m_pDoc->m_LaneManager.m_pErrorLog);
    m_pcImageTabCtrl->Create(WS_VISIBLE|TCS_TABS|TCS_BOTTOM|TCS_FIXEDWIDTH,
    Rect,
    this,
    IDD_DCL_IMAGE_TAB);
    m_pcImageTabCtrl->InsertItem(0,"Passengers 1 thru 4");
    m_pcImageTabCtrl->InsertItem(1,"Passengers 5 thru 8");
    m_pcImageTabCtrl->InsertItem(2,"Passengers 9 thru 12");
    m_pcImageTabCtrl->InsertItem(3,"Passengers 13 thru 16");
    m_pcImageTabCtrl->CreateTabSheet(0, IDD_PASSENGER1);
    m_pcImageTabCtrl->ShowTabPage(0);
    CSize tabsize(194,60);
    m_pcImageTabCtrl->SetItemSize(tabsize);
    m_pcImageTabCtrl->SetDCLDocView(this, m_pDoc);


    Anyone know the fix?

    Thanks,

    Rage

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center