定义了一个picture控件,ID为IDC_STATIC,为什么不能播放,是不是picture有类型设置?是神马问题,求大神解释
void CMy2Dlg::OnPlaySound() 
{
CStatic *pStatic=(CStatic*)GetDlgItem(IDC_STATIC);
HWND h=pStatic->GetSafeHwnd();
CString open1;
char buf[256];
open1.Format("open E:\\TDDOWNLOAD\\1.avi type MPEGVideo Alias movie parent %u Style %u notify",h,WS_CHILD);
mciSendString(open1.GetBuffer(open1.GetLength()),buf,sizeof(buf),NULL);
mciSendString("play movie",buf,sizeof(buf),NULL);
}