ccSendCommand - Example Code

 /*
  * Close caption flag is ON.
  * Fill in the CC_START_PARMS structure and the call ccSendCommand
  * to make the captioning window visible.  The hwndOwner field holds
  * the window handle that we want the Caption DLL to send the position
  * change messages to, when it is done processing them.
  */

 csp.pszDeviceName    = (PSZ)   "capsamp";     /* Alias name          */
 csp.pszCaptionFile   = (PSZ)   "CAPSAMP._CC"; /* File name to use    */
 csp.hwndOwner        =  hwnd;                 /* for position change */

 ulReturn = ccSendCommand ( CC_START, MPFROMHWND(hwndCaption), &csp );
                                               /* Start captioning    */


[Back: ccSendCommand - Related Functions]
[Next: ccSendCommand - Topics]