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

How to add multi-line tabs to the VC interface development kit Xtreme Toolkit Pro

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

VC interface development kit Xtreme Toolkit Pro how to add multi-line tabs, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.

Xtreme Toolkit Pro is the most comprehensive interface control package in MFC development. It provides 11 mainstream Visual C++ MFC controls needed for Windows development, including Command Bars, Controls, Chart Pro, Calendar, Docking Pane, Property Grid, Report Control, Shortcut Bar, Syntax Edit, Skin Framework and Task Panel.

Add a multiline tab

You can display more than one row of tabs by applying xtpTabLayoutMultiRow,TabControl using this SetLayout method. The number of rows is automatically set by the width and number of tabs. If you resize the control, the number of rows can be changed to ensure that the tab surrounds the next row. If the layout of the tab is not set to xtpTabLayoutMultiRow, and the last tab exceeds the width of the control, the left and right arrow buttons are added to the right end of the TabControl.

/ / by changing Layout to xtpTabLayoutMultiRow, TabControl can display multiple lines of tabs. M_wndTabControl.GetPaintManager ()-> SetLayout (xtpTabLayoutMultiRow)

This m_bMultiRowJustified property specifies the alignment of tabs in the TabControl. When True, each tab is wide enough to accommodate its title, and, if necessary, the width of each tab increases so that each tab row spans the width of the TabControl. This stretches each row of the tab to fill the entire width of the TabControl.

If False, the label line will be unreasonable. Each tab is wide enough to accommodate its title. These rows are unreasonable, so the multiple lines of the tab are "jagged."

The / / MultiRowJustified property specifies the alignment of tabs in / / TabControl. M_wndTabControl.GetPaintManager ()-> m_bMultiRowJustified = TRUE

This m_bMultiRowFixedSelection property specifies whether the row of the currently selected tab will be moved to the front of the tab row. This determines how to reposition the remaining tab rows in front of the selected tab.

If False, the tab row in front of the selected tab is repositioned on the opposite side (behind) of the control. For example, if there are three rows in a multiline label control and one of the labels in the second row is selected, all label rows will be repositioned after the second row.

If True, the rows in the multiline tab control remain fixed when you select the tab. The remaining tag rows in front of the selected tag will not be repositioned. For example, if you have three rows in a multiline label control, and you select a label in the second row, those label rows will remain the same.

/ / specifies whether to move the row / / of the currently selected tab to the front of the tab row. This / / determines how the selected tabs are repositioned in one of the previous remaining tab rows. M_wndTabControl.GetPaintManager ()-> m_bMultiRowFixedSelection = TRUE;, is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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.

Share To

Internet Technology

Wechat

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

12
Report