C++远程监控系统发送端播放视频文件2

  • Post author:
  • Post category:其他


/

// CMainFrame construction/destruction


LRESULT CMainFrame::OnOutbarNotify(WPARAM wParam, LPARAM lParam)

{


if((wParam)==NM_OB_ITEMCLICK)

{


CPlayView* pView=(CPlayView*)m_wndSplitter.GetPane(0,1);

::SendMessage(pView->m_hWnd,WM_VIEW_OUTBAR_NOTIFY,wParam,lParam);

}

return 0;

}


//响应消息WSA_ACCEPT

LRESULT CMainFrame::OnAccept(WPARAM wParam,LPARAM lParam)

{


int acsock;

int status;

if (WSAGETSELECTERROR( lParam ))

return -1;

if (WSAGETSELECTERROR( lParam ) == 0)

{   /* Success */

int req_sin_len = sizeof(req_sin );

//接受客户的连接请求

acsock = accept(Lsock,(struct sockaddr FAR *) &req_sin,(int FAR *)&req_sin_len);

if (acsock < 0)

{


MessageBox(



版权声明:本文为D20187原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。