How to: Program the Voice Recorder

The Voice Recorder control offers a user interface element that is similar to an audio recorder, using standard symbols for Record, Stop, Grip, and so forth. To program the Voice Recorder, you use one function, two data structures, and a small number of messages.

When you program the Voice Recorder, keep the following points in mind:

  • The Voice Recorder control is a WS_POPUP dialog box. This type of control can have an owner window but not a parent window.
  • The control always appears in z-order above its owner window. Consequently, the control always appears above the owner window's child windows.
  • When a child window creates its own Voice Recorder controls, the topmost parent window still owns the controls.
  • All VRN_* notification messages are sent to the topmost owner window.
  • Closing a child window does not cancel its associated Voice Recorder control.

To program the Voice Recorder

  1. Create the CM_VOICE_RECORDER structure.
  2. Initialize the CM_VOICE_RECORDER structure.
  3. Use the VoiceRecorder_Create function to initialize the Voice Recorder control.

See Also

How to: Initialize the Voice Recorder Control

How to: Intercept VRN_* Messages

Voice Recorder Control

Windows Mobile Controls

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.