CStatic *pStatic=(CStatic*)GetDlgItem(IDC_VIDEO);
CRect rect;
pStatic->GetWindowRect(&rect);
int xPos=rect.left;
int yPos=rect.top;
width=rect.Width();
heigth=rect.Height();
h=pStatic->GetSafeHwnd();
CString m_strEdivo1,m_strEdivo2;
// char buf[256];
m_strEdivo1.Format("open ""c:\\mpeg\\bbopening15.wmv"" Alias movie parent %u Style %u notify", h,WS_CHILD);
mciSendString(m_strEdivo1,buf,sizeof(buf),NULL);
m_strEdivo2.Format("put movie window at 0 0 %d %d",width,heigth);
mciSendString(m_strEdivo2,buf,sizeof(buf),NULL);

//播放多媒体文件
mciSendString("play movie repeat",buf,sizeof(buf),NULL);以上代码正确,请各位大指点一下!谢谢!