The dlgtempl sample shows how to create a dialog template dynamically and use the template with Dlgtempl示例说明如何动态创建对话框模板并将该模板与
Executable files can also contain resource data , such as dialog box templates , text strings , and version identification 执行文件还可以包含数据资源,比如对话框模板,文本串,和版本定义(信息) 。
Set the button ' s caption to a value such as “ myimage ” and define a symbol for the button such as idc _ myimage 创建一个对话框模板,其中有一个自定义的按钮放在需要位图按钮的位置。模板中按钮的大小无关紧要。
Controls are laid out in a dialog template resource idd wndclass edit as custom controls with a wndclass identified as " paredit . " it is instructive to examine the properties of these custom controls using the visual c dialog editor 控件在对话框模板资源( idd _ wndclass _ edit )中被布置成带有标识为“ paredit ”的wndclass的自定义控件。使用visual c + +对话框编辑器检查这些自定义控件的属性是有益的。
Due to the multiplatform nature of the development environment , when hosting mfc or atl activex objects in a device project , in a dialog box resource , you should create and register an equivalent control in an equivalent desktop activex project so that it can be added to the device dialog box template in the resource editor and run correctly 由于开发环境的多平台特点,在设备项目中承载mfc或atl activex对象时,在对话框资源中,您应在等效桌面activex项目中创建和注册等效控件,以便在资源编辑器中可以将它添加到设备对话框模板并且正确运行。