html文件很大,HTML Files

HTML Files

12/18/2017

2 minutes to read

In this article

The latest version of this topic can be found at HTML Files.

A wizard can contain a user interface, which is an HTML interface. Along with Default.htm, a wizard can contain any number of .htm files, which you can indicate in the Number of Pages box in the Custom Wizard. Each .htm file represents an HTML page of your wizard, and the HTML page is accessible using Next and Back buttons, tabs, or any other format you specify in your wizard design.

The HTML contains:

The SYMBOL tag, which identifies the default for user-defined options. Symbols are written into the symbol table when the user clicks Finish, such as:

In the wizard user interface (UI), the text box identified in the symbol table as "HEADER_FILE" contains the default text "MyHeader.h". You can change this value in the wizard UI, and the resulting value is written to the project's symbol table when you click Finish, such as:

In the wizard UI, the check box identified in the symbol table as "CHECKBOX1" is cleared by default. You can select this box in the HTML UI, and the resulting value is written to the symbol table when you click Finish.

Each .htm file records user selections to the symbols table.

An include for Common.js, which contains commonly used and helpful JScript functions, and Default.js.

References to the project's images to display in the HTML.

HTML text and formatting that customize the appearance of the wizard's user interface

JScript functions that access the Visual C++ Wizard Object Model to provide customized behavior from within the wizard. These functions are in the HTML page section headed

Note

To access the Wizard and Environment Object Models from HTML, prepend the object model item with "window.external."

function InitDocument(document)

{

setDirection();

if (window.external.FindSymbol('DOCUMENT_FIRST_LOAD'))

{

// This function sets the default symbols based

// on the values specified in the SYMBOL tags above

//

window.external.SetDefaults(document);

}

// Load the document and initialize the controls

// with the appropriate symbol values

//

window.external.Load(document);

}

The following is a sample console application wizard:

See Also

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值