Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



How to set default STRUCT values

Default values can be specified for struct members by using an initialiser, for example

STRUCT NCEDIT
 {
 WORD current;
 WORD low;
 WORD high=65535;
 }

With this specification, any NCEDIT resource will, by default, have a high member whose value is 65,535. If the RESOURCE statement specifies a different value, it will be used instead.