Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CTabCtrl

CTabCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
questioncom
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris Losinger
    wrote on last edited by
    #1

    How can I get rid of the black line drawn at the bottom of a tab control? None of the options on the property pages seem to do it without adding other lines in places i don't want, and i don't see any member functions that would do it. I want a control that has the dialog face color on its bottom edge (like a typical property page tab set), not black. -c


    When history comes, it always takes you by surprise.

    Bobber!

    T 1 Reply Last reply
    0
    • C Chris Losinger

      How can I get rid of the black line drawn at the bottom of a tab control? None of the options on the property pages seem to do it without adding other lines in places i don't want, and i don't see any member functions that would do it. I want a control that has the dialog face color on its bottom edge (like a typical property page tab set), not black. -c


      When history comes, it always takes you by surprise.

      Bobber!

      T Offline
      T Offline
      TomKat
      wrote on last edited by
      #2

      derive the control ! onncpaint framerect(clientrect,getsyscolorbursh(COLOR_3DFACE)); that`s it ! no more border ! I am the mighty keeper of the book on knowledge . Contact me to get your copy .

      C 1 Reply Last reply
      0
      • T TomKat

        derive the control ! onncpaint framerect(clientrect,getsyscolorbursh(COLOR_3DFACE)); that`s it ! no more border ! I am the mighty keeper of the book on knowledge . Contact me to get your copy .

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        if you meant this:

        void CMyTab::OnNcPaint()
        {
        CDC *pDC = GetDC();
        CRect cr;
        GetClientRect(cr);

        FrameRect(pDC->m_hDC, cr, ::GetSysColorBrush(COLOR_3DFACE));
        ReleaseDC(pDC);
        }

        then, no. that's not it. the border is still there. -c


        Image tools: ThumbNailer, Bobber, TIFFAssembler

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups