|
Posted by deadeasy on June 16, 2005, 5:52 pm
Please log in for more thread options
Hi,
I wrote a small app that creates a voice recorder control. I am able to
create it fine but I do get the WM_NOTIFY messages on the parents wndproc.
CM_VOICE_RECORDER cmvr;
memset( &cmvr, 0, sizeof(cmvr));
cmvr.cb = sizeof(CM_VOICE_RECORDER);
cmvr.dwStyle = VRS_NO_MOVE | VRS_MODAL;
cmvr.xPos = -1; // Use -1 to center the control relative to owner.
cmvr.yPos = -1;
cmvr.hwndParent = hWnd;
cmvr.id = IDC_VOICERECORDER;
cmvr.lpszRecordFileName = TEXT("\My Documents\vr2.wav");
// Returns the handle to the control.
g_hWndVoice = VoiceRecorder_Create(&cmvr);
Let me know where I am going wrong.
Thanks,
Piali
|