Clock Sample Program Caption Query

When it is time to chime the clock, the Clock Sample program checks the system captioning flag to determine whether or not it should display a visual chime while the audio chime is playing. The Clock program sets the global variable fClosedCaptionIsSet to store the value of the system captioning flag.

 /*
  * If the Captioning Flag indicates that the bell should be
  * animated (swung), the region of the presentation space
  * that contains the bell bitmap is to be invalidated so that a
  * WM_PAINT will be sent to draw the bells.
  */
 mciQuerySysValue( MSV_CAPTION, (PVOID)&fCaptionIsSet );


[Back: System Values]
[Next: Multimedia Logical Devices]