77范文网 - 专业文章范例文档资料分享平台

codejock英文教程(4)

来源:网络收集 时间:2019-02-17 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

to specify that all windows will not automatically receive the skin. You can then individually specify which windows will receive the skin by using the ApplyWindow method. XTPSkinManager()->SetAutoApplyNewWindows(FALSE); XTPSkinManager()->ApplyWindow(pWnd->GetSafeHwnd());

Removing the Expand Button Author: Mike Palmatier Posted: April 28, 2008

Environment:Visual C++ 6.0

The expand button can is used to display a popup menu with items related to the shortcut

bar. Sometimes you might not want to display the expand button in your shortcut bar.

The ShowExpandButton method is used to remove the expand button. You can use the IsExpandButtonVisible method to determine if the button is visible. m_wndShortcutBar.ShowExpandButton(FALSE);

Adding Multi-Row Tabs Author: Mike Palmatier Posted: May 3, 2008

Environment:Visual C++ 6.0

The TabControl can display more than one row of tabs by using the SetLayout method to apply the xtpTabLayoutMultiRow flag. The number of rows is automatically set by the width and number of the tabs. The number of rows can change if the control is resized, which ensures that the tabs wrap to the next row. If the tab layout is not set to

xtpTabLayoutMultiRow, and the last tab exceeds the width of the control, left and right arrow buttons are added at the right end of the TabControl.

'The TabControl can display more than one row of tabs

'by changing the Layout to xtpTabLayoutMultiRow.

m_wndTabControl.GetPaintManager()->SetLayout(xtpTabLayoutMultiRow);

The m_bMultiRowJustified property specifies the justification of the tabs in the TabControl. When True, each tab is wide enough to accommodate its caption and, if needed, the width of each tab is increased so that each row of tabs spans the width of the TabControl. This will stretch each row of tabs to fill the entire width of the TabControl.

If False, the tab rows will be non-justified. Each tab is just wide enough to accommodate its caption. The rows are not justified, so multiple rows of tabs are \ 'The MultiRowJustified property specifies the 'justification of the tabs in the TabControl.

m_wndTabControl.GetPaintManager()->m_bMultiRowJustified = TRUE;

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

remaining rows of tabs in front of a selected tab are repositioned.

When False, the rows of tabs in front of the selected tab are repositioned at the opposite side (behind) of the control. For example, if there are three rows in the multi-row tab-control, and a tab in the second row is selected, all tab rows will be repositioned behind the second row.

When True, the rows in a multi-row tab control remain \remaining rows of tabs in front of a selected tab will not be repositioned. For example, if there are three rows in the multi-row tab-control, and a tab in the second row is selected, the tab rows will remain the same.

'specifies whether the the row of the currently selected 'tab will be moved to the front of the tab rows. This 'determines how remaining rows of tabs in front of a

'selected tab are repositioned.

m_wndTabControl.GetPaintManager()->m_bMultiRowFixedSelection = TRUE;

Adding Multi-Line Items Author: Mike Palmatier Posted: May 3, 2008 Environment:Visual C++

Each property grid item can display multiple lines of text. To enable multi-line support, use the SetMultiLinesCount method of the item to specify a number greater than 1.

VariableItemsHeight must also be True to see multi-line text values in the property grid.

To specify that only one line of text can be displayed (default), set the multi-line count to 1. Start by adding a category to the property grid. CXTPPropertyGridItem* pMetrics =

m_wndPropertyGrid.AddCategory(_T(\Now enable multi-line items by setting SetVariableItemsHeight to TRUE. m_wndPropertyGrid.SetVariableItemsHeight(TRUE);

Then add a PropertyItemString item with the multi-line text. Text will wrap if too long to display in the item. You can use line breaks and carriage returns to specify exactly where the line will break.

CXTPPropertyGridItem* pItem =

pMetrics->AddChildItem(new

CXTPPropertyGridItem(_T(\

_T(\ Morrice, Michigan 48857 USA\

If you will allow your users to edit the multi-line item then you need to specify how the

item will be formatted when the item is in edit mode. The SetEditStyle method specifies how the item behaves when the item is in edit mode.

pItem->SetEditStyle(ES_MULTILINE | ES_AUTOVSCROLL);

Finally you must set how many lines the item will be. The item will always be the number of lines in SetMultiLinesCount regardless of how many lines of text there are. pItem->SetMultiLinesCount(5);

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库codejock英文教程(4)在线全文阅读。

codejock英文教程(4).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/478878.html(转载请注明文章来源)
上一篇:-信息提示
下一篇:教书育人 关爱学生
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: