I have got the problem I have implemented the PrecreateWindow for my view class.
just check this code.

Code:
BOOL CMyView::PreCreateWindow(CREATESTRUCT& cs)
{
	cs.lpszClass = ::AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS | CS_OWNDC,::LoadCursor(NULL, IDC_ARROW), NULL, NULL);

    cs.style |= WS_CLIPSIBLINGS | WS_CLIPCHILDREN;

    cs.dwExStyle = WS_EX_CLIENTEDGE; 

	return CView::PreCreateWindow(cs);
}
If I remove the first line, i.e
cs.lpszClass = ::AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS | CS_OWNDC,::LoadCursor(NULL, IDC_ARROW), NULL, NULL);
then my dll window is coming all the times from the client call. But it's flickering .
So now please help me what can I do to resolve this. I think some of you must have understood the problem, please help me. Thanks a lot.