   text ticker activex
  Hi list,I'm using directx 10 to create a text ticker activex control. When I put the render loop inside the activex control to render the text movement with directx?code:VOID CScene::Render(){if (m_pDevice != NULL) {// Clear the previous contents of the backbufferfloat colClear[4] = {0.0f, 0.0f, 0.0f, 0.0f};m_pDevice->ClearRenderTargetView(m_pRenderTargetView, colClear);// Output textm_pFontSprite->Begin(0);RECT rect = {m_nXPos, 20, m_rcScreenRect.right, m_rcScreenRect.bottom};m_pFont->DrawText(m_pFontSprite, L"Hello", -1, &rect, DT_LEFT, D3DXCOLOR(1, 1, 1, 1));m_pFontSprite->End();m_nXPos -= m_nStep;if (m_nXPos < -2000)m_nXPos = 1000;// display the next item in the swap chainm_pSwapChain->Present(m_nSync, 0);}}thanks,linun   