Chinaunix首页 | 论坛 | 博客
  • 博客访问: 499271
  • 博文数量: 68
  • 博客积分: 2492
  • 博客等级: 大尉
  • 技术积分: 866
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-02 16:30
个人简介

承接移动应用(iOS、Android、WP),桌面应用(VC++、C#、VB、Qt)和嵌入式软件(单片机、ARM)开发。欢迎接洽。QQ:2335301794,E-mail:rabbitom@gmail.com。

文章分类

全部博文(68)

文章存档

2016年(1)

2015年(2)

2014年(4)

2013年(6)

2012年(1)

2011年(8)

2010年(16)

2009年(8)

2008年(10)

2007年(12)

我的朋友

分类: C/C++

2014-06-01 09:51:34

本文讨论的属性页标题指下图红框框出的部分:

MFC属性页(CPropertyPage)的构造函数中只提供了用字符串资源初始化标题的功能:
()

点击(此处)折叠或打开

  1. CPropertyPage( );
  2. explicit CPropertyPage(
  3.    UINT nIDTemplate,
  4.    UINT nIDCaption = 0,
  5.    DWORD dwSize = sizeof(PROPSHEETPAGE)
  6. );

nIDCaption

ID of the name to be placed in the tab for this page. If 0, the name will be taken from the dialog template for this page.

如果不想将字符串放进资源文件,可以这样做(MLCClockSchedulePage是CPropertyPage的子类):

点击(此处)折叠或打开

  1. MLCClockSchedulePage clockSchedulePage;
  2. clockSchedulePage.m_psp.dwFlags |= PSP_USETITLE;
  3. clockSchedulePage.m_psp.pszTitle = _T("工作日");


阅读(2207) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~