diff -r 80ef3a206772 -r 48780e181b38 Symbian3/SDK/Source/GUID-D52E98C3-F5EE-4CE1-A4F5-2EF41A066B8A.dita --- a/Symbian3/SDK/Source/GUID-D52E98C3-F5EE-4CE1-A4F5-2EF41A066B8A.dita Fri Jul 16 17:23:46 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-D52E98C3-F5EE-4CE1-A4F5-2EF41A066B8A.dita Tue Jul 20 12:00:49 2010 +0100 @@ -9,33 +9,31 @@ --> -Creating -resource header files -

Typically when you create an application, there are cases where you -need to create an enumerated set of command IDs (which are symbols with integer -values). These defined symbols can then be used in both your code and resource -files. Common examples of these cases, include:

+Creating resource header files +

Typically when you create an application, there are cases where +you need to create an enumerated set of command IDs (which are symbols +with integer values). These defined symbols can then be used in both +your code and resource files. Common examples of these cases, include:

    -
  • Custom command IDs used for mapping mobile device user input -based upon Options menu selections to command handling. -These custom command IDs are mapped to the text displayed for the command -in the Options menu in resource files, and then are passed -back to the application by the application framework.

  • -
  • Control IDs in dialogs to allow references to the dialog -controls from C++ code.

    +
  • Custom command IDs used for mapping mobile device +user input based upon Options menu selections +to command handling. These custom command IDs are mapped to the text +displayed for the command in the Options menu +in resource files, and then are passed back to the application by +the application framework.

  • +
  • Control IDs in dialogs to allow references to the +dialog controls from C++ code.

    -

    For more information on control IDs for dialogs, see Using -Dialogs API.

    +

    For more information on control IDs for dialogs, see Using Dialogs API.

  • -
  • Application view IDs. Note that these could also be enumerated -in the header files for the views.

  • -
  • IDs for other resource structures, such as for TABS in -the status pane.

  • +
  • Application view IDs. Note that these could also +be enumerated in the header files for the views.

  • +
  • IDs for other resource structures, such as for TABS in the status pane.

-

These enumerated values need to be defined in a resource file, which -by convention has the extension hrh, The syntax is as -follows:

+

These enumerated values need to be defined in a resource file, +which by convention has the extension hrh, The +syntax is as follows:

enum TCommandIds { ECmdAppTest1 = 1, @@ -49,28 +47,27 @@ };

where

    -
  • enum is the keyword declaration the -set of integer values.

    +
  • enum is the keyword declaration +the set of integer values.

    Use this keyword for each set of enumerated values you defined.

  • -
  • TCommandIds is a label for the list -of enumerated values. This label is not used in the code or resource files.

    -
  • -
  • ECmdAppTest1 is a symbol that can be -used in your code or resource files.

  • -
  • = is the operator used for setting the -value to the symbol.

  • -
  • 1 is the specific value assigned to -the enumerator symbol.

  • +
  • TCommandIds is a label for the +list of enumerated values. This label is not used in the code or resource +files.

  • +
  • ECmdAppTest1 is a symbol that +can be used in your code or resource files.

  • +
  • = is the operator used for setting +the value to the symbol.

  • +
  • 1 is the specific value assigned +to the enumerator symbol.

-

Each enumerator is followed by a comma (,) except for -the last value. It is recommended to have a final semi colon (;) -after the enumerated list. If a specific value is not assigned to a symbol -in the enumerated list, then the value is that of the previous enumerator -plus one. Thus, the value for ECmdView1Cmd1 above is -2.

-

For more information about the use of the enum statement, -see ENUM statement.

+

Each enumerator is followed by a comma (,) +except for the last value. It is recommended to have a final semi +colon (;) after the enumerated list. If a specific +value is not assigned to a symbol in the enumerated list, then the +value is that of the previous enumerator plus one. Thus, the value +for ECmdView1Cmd1 above is 2.

+

For more information about the use of the enum statement, see ENUM statement.

\ No newline at end of file