| 34 | // CAGVideoTestWnd Message handle |
| 35 | |
| 36 | int CAGVideoTestWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) |
| 37 | { |
| 38 | if (CWnd::OnCreate(lpCreateStruct) == -1) |
| 39 | return -1; |
| 40 | |
| 41 | // TODO: add you own creation code here |
| 42 | CRect rcChildRect; |
| 43 | |
| 44 | DWORD dwWndStyle = WS_VISIBLE | WS_CHILD; |
| 45 | rcChildRect.SetRect(15, 0, lpCreateStruct->cx-30, lpCreateStruct->cy); |
| 46 | m_wndVideoWnd.Create(NULL, _T("AgoraVideoWnd"), dwWndStyle, rcChildRect, this, IDC_STATIC); |
| 47 | |
| 48 | return 0; |
| 49 | } |
| 50 | |
| 51 | void CAGVideoTestWnd::OnPaint() |
| 52 | { |