MCPcopy Create free account
hub / github.com/AgoraIO/API-Examples / OnCreate

Method OnCreate

windows/APIExample/APIExample/AGVideoTestWnd.cpp:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34// CAGVideoTestWnd Message handle
35
36int 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
51void CAGVideoTestWnd::OnPaint()
52{

Callers

nothing calls this directly

Calls 1

CreateMethod · 0.45

Tested by

no test coverage detected