In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to use BCG to add Visual Manager support to the dialog box, for this question, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
The BCGControlBar library has more than 500 fully designed, tested, and well documented MFC extension classes. Our components can be easily integrated into your application and save you hundreds of development and debugging time.
Download BCGControlBar v30.5 official version
If you need to apply the currently selected Visual Manager to an existing dialog box (form view or property page), you must make the following changes in the source code:
1. Change the parent (base) class name: you must make the following replacements in .h and .cpp files:
CDialog-CBCGPDialog.
CPropertySheet-CBCGPPropertySheet.
CPropertyPage-CBCGPPropertyPage.
CFormView-CBCGPFormView.
two。 Call EnableVisualManager in the constructor of the dialog class (as far as the property sheet is concerned, calling this method only in the class constructor derived from CBCGPPropertySheet is sufficient: all pages are automatically themed).
3. If some controls on the dialog box are already associated with control member variables, such as CButton or CEdit, you must replace the class name of MFC with the appropriate library name. If the control does not have member variables, it automatically sets the theme.
4. If the dialog box contains list boxes or combo box controls, you must change their style to owner-draw + "Has strings" and add CBCGPListBox / CBCGPComboBox variables to those controls (due to Windows limitations, the mentioned style cannot be changed after the list / combo box has been created), so we cannot make this change.
For example, if you perform all the above steps on the following MFC dialog box:
The result will be:
(VS 2017 Blue theme)
(VS 2017 Dark theme)
This is the answer to the question on how to use BCG to add Visual Manager support to the dialog box. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.