Udostępnij za pośrednictwem


Document Template Strings, MFC Smart Device Application Wizard

This document describes the Document Template Strings page of the Microsoft Foundation Classes (MFC) Smart Device Application Wizard.

In this page of the MFC Smart Device Application Wizard, provide or refine the following options to help with document management and localization. Document template strings are available for applications that include Document/view architecture support in the Application Type. They are unavailable for dialog boxes. Because most document template strings are visible and used by the application's users, they are localized into the Resource language indicated in the Application Type page of the wizard.

  • Non-localized strings
    Applies to applications that create user documents. Users can open, print, and save documents more easily if you provide a file name extension and a file type ID. These items are not localized because they are used by the system rather than by the user.

    Option

    Description

    File extension

    Sets the file name extension associated with the documents that the user saves when using the application. For example, if your project is named Widget, you could name the file name extension .wgt. (When you enter the file name extension, do not include the period.)

    If you provide a file name extension, the Explorer can print your application's documents without starting your application when the user drops the document icon on a printer icon.

    If you do not specify an extension, a user must specify a file name extension when saving files. The wizard does not provide a default file name extension.

    File type ID

    Sets the label for your document type in the system registry.

  • Localized strings
    Produces strings associated with the application and document that are read and used by the application's users, so the strings are localized.

    Option

    Description

    Language

    Indicates the language in which strings are displayed for all the boxes under Localized strings. To change the value in this box, select the appropriate language under Resource languagein the Application Type page of the MFC Smart Device Application Wizard.

    Main frame caption

    Sets the text appearing at the top of the main application frame. By default, this is the project name.

    Doc type name

    Identifies the type of document under which a document of the application can be grouped. By default, this is the project name. Changing the default does not change any other options in this dialog box.

    Filter name

    Sets the name your users can indicate to find files of your file type. This option is available from the Files of type and Save as type options in the standard Windows Open and Save as dialog boxes. By default, the project name plus Files, followed by the extension provided in File extension. For example, by default, if your project is named Widget, and the file name extension is .wgt, the Filter name is Widget Files (*.wgt).

    File new short name

    Sets the name appearing in the standard Windows New dialog box, if there is more than one new document template. If your application is an Automation server, this name is used as the short name of your Automation object. By default, this is the project name.

    File type long name

    Sets the file type name in the system registry. If your application is an Automation server, this name is used as the long name of your Automation object. By default, the project name plus .Document.

See Also

Reference

MFC Smart Device Application Wizard