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. MFC CTabCtrl problems in VS2010

MFC CTabCtrl problems in VS2010

Scheduled Pinned Locked Moved C / C++ / MFC
c++comquestion
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.
  • J Offline
    J Offline
    j_schultz
    wrote on last edited by
    #1

    I'm having some problems with my rather old codebase in VS2010 again. I have a MDI program where the child windows have a tabbed layout; This worked nicely up to VS2008, but in VS2010 the background of the tab bar is broken, see here. Any idea what could be causing this? Note that the tab bar looks perfectly OK when using the Win2k theme in Win7, it only looks like this with Aero enabled. Somehow I think it could be related to the fact that the child windows are using a splitter pane with a top and a bottom pane, but the upper pane appears to be a CDialog - I have been told that this should actually not be possible at all, but somehow the previous developer of this app got it to work...

    T 1 Reply Last reply
    0
    • J j_schultz

      I'm having some problems with my rather old codebase in VS2010 again. I have a MDI program where the child windows have a tabbed layout; This worked nicely up to VS2008, but in VS2010 the background of the tab bar is broken, see here. Any idea what could be causing this? Note that the tab bar looks perfectly OK when using the Win2k theme in Win7, it only looks like this with Aero enabled. Somehow I think it could be related to the fact that the child windows are using a splitter pane with a top and a bottom pane, but the upper pane appears to be a CDialog - I have been told that this should actually not be possible at all, but somehow the previous developer of this app got it to work...

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

      It looks like your tab control is inside an MDI window? If so, then the horizontal scrollbar is likely from the MDI window. With Aero enabled, controls and windows, and window components may have different sizes. You may have hard-coded some of these items. In any case, the reason for the horizontal scroll bar is because the tab control is bigger than it's container (CDialog or MDI window).

      If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
      You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun

      J 1 Reply Last reply
      0
      • T TheGreatAndPowerfulOz

        It looks like your tab control is inside an MDI window? If so, then the horizontal scrollbar is likely from the MDI window. With Aero enabled, controls and windows, and window components may have different sizes. You may have hard-coded some of these items. In any case, the reason for the horizontal scroll bar is because the tab control is bigger than it's container (CDialog or MDI window).

        If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
        You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun

        J Offline
        J Offline
        j_schultz
        wrote on last edited by
        #3

        Sorry if it was not obvious from the screenshot, but both the dark grey area as well as the scroll bar are pixel garbage which is shown instead of the default background colour. The scrollbar that you can see in the screenset becomes visible after minimizing the MDI child window at exactly the same position where previously a "real" scrollbar was.

        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