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. Windows API
  4. Toolbar not sizing correctly

Toolbar not sizing correctly

Scheduled Pinned Locked Moved Windows API
helpc++wpftutorialquestion
3 Posts 2 Posters 3 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.
  • B Offline
    B Offline
    bob16972
    wrote on last edited by
    #1

    I have a basic VC++ 7.1 Doc/View based application with the standard toolbar (16x16 images from the default image list the app wizard put in). When I perform the steps to include the default manifest file as a resource so I can get OS specific style controls, my toolbars come out a bit too short (I only see the top portion of the rounded edge rectangle vista tries to draw around the image and text for the button when hovering) The issue seems to be related to the style TBSTYLE_DROPDOWN and the addition of text to the toolbar buttons. Still not sure how to eliminate the problem but at least it narrows down the contributing factors a bit. I tried setting the styles in various orders and using some different techniques found on MSDN with and without AERO effects turned on; The problem remains. NOTE: When the "theme" is set to "Classic", the toolbar sizes correctly as one would expect. Any ideas on any steps I'm missing?

    C 1 Reply Last reply
    0
    • B bob16972

      I have a basic VC++ 7.1 Doc/View based application with the standard toolbar (16x16 images from the default image list the app wizard put in). When I perform the steps to include the default manifest file as a resource so I can get OS specific style controls, my toolbars come out a bit too short (I only see the top portion of the rounded edge rectangle vista tries to draw around the image and text for the button when hovering) The issue seems to be related to the style TBSTYLE_DROPDOWN and the addition of text to the toolbar buttons. Still not sure how to eliminate the problem but at least it narrows down the contributing factors a bit. I tried setting the styles in various orders and using some different techniques found on MSDN with and without AERO effects turned on; The problem remains. NOTE: When the "theme" is set to "Classic", the toolbar sizes correctly as one would expect. Any ideas on any steps I'm missing?

      C Offline
      C Offline
      Christopher Duncan
      wrote on last edited by
      #2

      In addition to the manifest, you may need to define ISOLATION_AWARE_ENABLED. Here's what I have at the very top of stdafx.h: //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // NOTE!!! // this must be defined before all other include files or you won't get the // right version of common controls. #define ISOLATION_AWARE_ENABLED 1 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Hope this helps, Chris

      Author of The Career Programmer and Unite the Tribes www.PracticalStrategyConsulting.com

      B 1 Reply Last reply
      0
      • C Christopher Duncan

        In addition to the manifest, you may need to define ISOLATION_AWARE_ENABLED. Here's what I have at the very top of stdafx.h: //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // NOTE!!! // this must be defined before all other include files or you won't get the // right version of common controls. #define ISOLATION_AWARE_ENABLED 1 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Hope this helps, Chris

        Author of The Career Programmer and Unite the Tribes www.PracticalStrategyConsulting.com

        B Offline
        B Offline
        bob16972
        wrote on last edited by
        #3

        Unfortunately it didn't fix the resizing problem in Vista. I went and looked that symbol up and tried a few different variations on the approach but nothing seems to fix it. I appreciate the information nonetheless. Thanks for responding.

        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