Page 1 of 1

pWnd->SendMessage(WM_CLOSE) cannot close

PostPosted: Mar 20, 2003 @ 1:30pm
by Students
I use this code.

CWnd* pWnd = CWnd::FindWindow(NULL,_T("Windows Media")
if(pWnd)
{pWnd->SendMessage(WM_CLOSE);

This work when the WMP stop playing the file.
Cannot when WMP is still Playing the file.

Thanks

PostPosted: Mar 20, 2003 @ 3:24pm
by Dan East