当前位置: 首页>>代码示例>>C++>>正文


C++ CDialog::add方法代码示例

本文整理汇总了C++中CDialog::add方法的典型用法代码示例。如果您正苦于以下问题:C++ CDialog::add方法的具体用法?C++ CDialog::add怎么用?C++ CDialog::add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CDialog的用法示例。


在下文中一共展示了CDialog::add方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: CLabel

		SceneBookDatabase() :
			_insertingBook(false),
			_deletingBook(false),
			insert(true),
			scrMain(),
			scrBook(&scrMain, 5, 10, 50, 15, true, "+-+|+-+|"),
			lblName("Name: ", 4, 3),
			lblAuthor("Author: ", 5, 3),
			lblPublisher("Publisher: ", 6, 3),
			lblRDate("Release Date: ", 7, 3),
			lblISBN("ISBN: ", 8, 3),
			lblRating("Rating: ", 9, 3),
			lblMessage("Welcome to use Team-T's Program", 11, 2),
			lblMessage2("", 12, 2),
			lblFunctionKeys1(" F3=EXIT  F5=SEARCH  F6=INSERT  F7=GO FIRST  F8=GO LAST  F9=COMMIT  F10=DISCARD  ", 23, 0),
			lblFunctionKeys2(" PAGEUP=PREV RECORD  PAGEDOWN=NEXT RECORD  F11=DELETE RECORD ", 24, 0),
			txtName(4, 13, 20, 40, &insert),
			txtAuthor(5, 11, 20, 70, &insert),
			txtPublisher(6, 14, 20, 70, &insert),
			txtRDate(7, 17, 20, 10, &insert),
			txtISBN(8, 9, 20, 10, &insert),
			txtRating(9, 11, 20, 10, &insert)
			{
			int i = 0;
			for (int k = 1; k<console.getRows(); k += 2){
				for (int m = 0; m<console.getCols() - 10; m += 10){
					scrMain << new CLabel((i = !i) ? "Hello" : "Hi", k, m, 9);
				}
			}
			scrMain << new CLabel("Dialog and Line Editor Tester      ", 0, 0) << lblFunctionKeys1 << lblFunctionKeys2;
			scrMain.draw();
			scrBook.add(new CLabel("Book Database", 1, 12));
			
			scrBook << lblName << txtName << lblAuthor << txtAuthor << lblPublisher << lblMessage << lblMessage2 << txtPublisher << lblRDate << txtRDate << lblISBN << txtISBN << lblRating << txtRating;
			scrBook.draw();
		}
开发者ID:Parthas-Menethil,项目名称:OOP344-BookProcessor,代码行数:36,代码来源:bookguitest.cpp


注:本文中的CDialog::add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。