Programming Guide |
Sets a format string for a status bar section
int sm_sb_format(int sectno, char* format)
sectno
- The number of the section for which to specify a format string.
format
- A format string for a section.
- 0 Success
This function sets the format string for a status bar section. This is relevant only for sections of type
SBS_SYSTEM_TIME
andSBS_ELAPSED_TIME
, as described above.The second argument, format, represents a format string. Valid date/time format strings are described in the documentation for the function sm_sdtime. Note that an
SBS_ELAPSED_TIME
section displays a clock that starts at midnight when the section is created. So a format string for a section of that type should be chosen so that it is meaningful in that context.