Toolbar not sizing correctly
-
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?
-
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?
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
-
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