Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the enhancements of MFC interface development tools

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article focuses on "what are the enhancements of MFC interface development tools?" interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "what are the enhancements of MFC interface development tools"?

Control

1. CBCGPTabWnd: the location of the implemented label icon. Before this release, the icon was always on the left side of the label, but now you can specify the location of the icon by calling the new method CBCGPTabWnd:: SetIconLocation.

2. CBCGPComboBox: added an icon similar to CComboBoxEx, which is displayed on the left side of the edit box. The SetImageList method has a new optional parameter bDisplayIconLeftOfEditBox

3. CBCGPEdit: the new method EnableIconOnLeft allows icons to be displayed on the left side of the control.

4. CBCGPSliderCtrl has the following new and improved features:

The new method SetPositionOnClick allows you to change the thumb position to the clicked position when the user clicks the channel.

The new method SetReversedOrder allows you to exchange minimum and maximum range values. This feature is useful when you have a vertical slider and need to display a minimum value at the bottom.

Drawing Manager

1. CBCGPGraphicsManager: improved geometric scaling.

2. CBCGPImage: constructors with HICON and HBITMAP have a new optional parameter "bAutoDestroy" (default is FALSE). If this parameter is TRUE, the icon / bitmap is automatically destroyed in the CBCGPImage destructor.

Other

1. Support for Windows 10 bright / dark mode has been implemented:

The new method BCGPGLOBAL_DATA:: IsAppDarkMode tells the default application whether the mode is dark.

A new registration message BCGM_ONWINDOWSAPPMODECHANGED has been added. After you change the Windows application mode, this message is sent to the main application window.

To take advantage of this new feature, set the appropriate visual theme based on the return value of globalData.IsAppDarkMode () (for example, Office 2016 Dark / Office 2016 White) in the application startup code and the BCGM_ONWINDOWSAPPMODECHANGED message handler.

two。 Add a new registration message BCGM_ONGLOBALFONTSCHANGED: when the global font (such as globalData.fontRegular) is updated, it is sent to the main application window.

3. You can now export the global method BCGPTrackMouse.

4. CBCGPToolBarImages: a new global member "m_bAlwaysCreateShadowImage" (default is FALSE) has been added. If this member is TRUE, shadow images are created in all visualization themes.

5. CBCGPHotSpotImageCtrl: add support for tooltips specified in the SVG file ("title" and "desc" attributes).

6. CBCGPBreadcrumb:: SelectSubPath: a new optional parameter "delimiter" has been added (default is'\').

7. CBCGPToolTipParams: a new flag "m_bHideDuplicatedDescription" has been added (default is FALSE). If this flag is TRUE and the tooltip name is the same as the description, only the name is displayed in the tooltip.

8. The new helper class CBCGPPostRedraw simplifies the implementation of flicker-free controls.

9. CBCGPDrawManager: a new method DrawEdge has been added. This method is very similar to CDC:: DrawEdge, but renders the edges using the current theme color and can be drawn on the DWM window area.

10. CBCGPSVGBase: support for "title" and "desc" SVG node properties has been added; GetName and GetDescription methods have been added.

11. Shell Manager: added custom (Quick access) folder support. You can specify these folders using the new CBCGPShellManager class method AddCustomFolders and display them in all CBCGPShellTree controls. If you do not want to display the custom folder in a specific Shell tree control, call the new CBCGPShellTree method SetDisplayCustomFolders with the parameter bSet = FALSE.

twelve。 The new virtual method CBCGPGridCtrl:: OnKeepGroupWithChildrenOnNewPrintPage specifies whether the grid group should be printed from the new page. By default, it returns FALSE.

At this point, I believe you have a deeper understanding of "what are the enhancements of MFC interface development tools?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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: 276

*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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report